-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: High contrast mode hover style icon fixes in react-button components #28156
fix: High contrast mode hover style icon fixes in react-button components #28156
Conversation
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: 14804fe31e9f34d3f21998dcb386fdddd23f9839 (build) |
📊 Bundle size reportUnchanged fixtures
|
Perf Analysis (
|
Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
---|---|---|---|---|---|
InfoButton | mount | 10 | 11 | 5000 | Possible regression |
All results
Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
---|---|---|---|---|---|
Avatar | mount | 590 | 596 | 5000 | |
Button | mount | 288 | 290 | 5000 | |
Field | mount | 1027 | 1054 | 5000 | |
FluentProvider | mount | 638 | 632 | 5000 | |
FluentProviderWithTheme | mount | 74 | 78 | 10 | |
FluentProviderWithTheme | virtual-rerender | 68 | 67 | 10 | |
FluentProviderWithTheme | virtual-rerender-with-unmount | 67 | 74 | 10 | |
InfoButton | mount | 10 | 11 | 5000 | Possible regression |
MakeStyles | mount | 843 | 849 | 50000 | |
Persona | mount | 1652 | 1596 | 5000 | |
SpinButton | mount | 1298 | 1291 | 5000 |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit e6b36aa:
|
🕵 fluentuiv9 No visual regressions between this PR and main |
packages/react-components/react-button/src/components/Button/useButtonStyles.styles.ts
Outdated
Show resolved
Hide resolved
/azp run Fluent UI React - PR and CI |
Azure Pipelines successfully started running 1 pipeline(s). |
those bundle size increases are not looking good. can we update this branch with latest master to check if it's only stale data regression or actual size increase ? if it's really a size increase it would be good to investigate first what causes almost 2kb bump - that's quite a lot for this change. |
packages/react-components/react-button/src/components/Button/useButtonStyles.styles.ts
Show resolved
Hide resolved
/azp run |
Azure Pipelines successfully started running 4 pipeline(s). |
1 similar comment
Azure Pipelines successfully started running 4 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 4 pipeline(s). |
🕵 fluentuiv9 No visual regressions between this PR and main |
* master: (32 commits) chore: remove @fluentui/bundle-size (microsoft#28601) Breadcrumb UI adjustments (microsoft#28578) feat(tools): re-generate react-components.api.md when preparing 1st stable release (microsoft#28561) perf(tools): make dependency-mismatch execution 90% faster and ignore */>=9.0.0-alpha versions (microsoft#28597) Table/DataGrid: keyboard resizing improvements (microsoft#28493) docs(react-tooltip): Add info icon + tooltip story to Tooltip stories (microsoft#28611) chore: Updating @fluentui/react-icons to version 2.0.207 (microsoft#28590) feat: allSelectedRows and someSelectedRows should be more reliable (microsoft#28577) add vr test to react-tags (microsoft#28484) applying package updates chore: migrate to monosize (microsoft#26826) fix(react-conformance): add @swc/helpers to deps instead of tslib as we use swc for transpilation (microsoft#28599) fix: MenuItem content should be spaced 12px from the boundary (microsoft#28162) feat: implements selection (microsoft#28497) bugfix: moves handleBackdropClick from defaultProps to an override (microsoft#28579) Fix empty CSS creation (microsoft#28566) chore: replace plop with nx within create-* aliases in root package.json (microsoft#28575) applying package updates fix: High contrast mode hover style icon fixes in react-button components (microsoft#28156) SplitButton: updated border right token for primary variant (microsoft#28555) ...
This PR corrects the contrast of the icon on subtle buttons and text on transparent buttons in high contrast mode.
Before:
After:
Also corrects the color of the secondary text for CompoundButton.
Before:
After:
Removes the high contrast MenuButton bug that causes icons to change colors when the menu is open.
Before:
After:
Removes the high contrast ToggleButton bug that caused the Subtle and Transparent variants to have low contrast icons.
Before:
After: