-
Notifications
You must be signed in to change notification settings - Fork 2.9k
fix(react-theme): Rename colorNeutralForegroundInvertedStatic token to colorNeutralForegroundStaticInverted #24611
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(react-theme): Rename colorNeutralForegroundInvertedStatic token to colorNeutralForegroundStaticInverted #24611
Conversation
…rNeutralForegroundStaticInverted
|
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 a286549:
|
📊 Bundle size reportUnchanged fixtures
|
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: 21af8da1d98c070a682b26b7d56775d43a749b3d (build) |
Perf Analysis (
|
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| Avatar | mount | 1320 | 1287 | 5000 | |
| Button | mount | 947 | 957 | 5000 | |
| FluentProvider | mount | 1581 | 1577 | 5000 | |
| FluentProviderWithTheme | mount | 636 | 638 | 10 | |
| FluentProviderWithTheme | virtual-rerender | 593 | 592 | 10 | |
| FluentProviderWithTheme | virtual-rerender-with-unmount | 623 | 632 | 10 | |
| MakeStyles | mount | 1816 | 1892 | 50000 | |
| SpinButton | mount | 2342 | 2419 | 5000 |
| colorNeutralForegroundInvertedSelected: palette.white, | ||
| colorNeutralForegroundOnBrand: palette.white, | ||
| colorNeutralForegroundInvertedStatic: palette.white, | ||
| colorNeutralForegroundStaticInverted: palette.white, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason I went with "inverted static" is because I felt it better aligned with our other usages of "inverted" which are all "inverted {modifier}". To me "static" feels like a modifier much like "pressed" or "hover".
I'm fine with changing it too :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that makes sense. But the reason why it is StaticInverted is to point out that for this particular token, Static it is not a modifier of Inverted.
* master: (99 commits) applying package updates add coastal to @fluentui/react package and components (microsoft#24599) fix(react-18-tests-v9): extend correct tsconfig.json (microsoft#24626) feat(react-18-tests-v9): Add cypress setup to enable writing cypress tests (microsoft#24619) chore: Removing CompoundButtonAsToggleButton story since it was importing non-exported functions (microsoft#24620) Update PeoplePicker focus styles for the close button - Add borderRadius to getFocusStyle (microsoft#24596) fix(react-theme): Rename colorNeutralForegroundInvertedStatic token to colorNeutralForegroundStaticInverted (microsoft#24611) Website fabric core (microsoft#24613) fix(react-theme) update react theme colors mapping (microsoft#24608) Remove downloaded artifact file after using it (microsoft#24606) Fix artifact downloading race condition (microsoft#24607) chore(deps): bump moment-timezone from 0.5.34 to 0.5.37 (microsoft#24604) Remove check for commit existence and make it optional (microsoft#24587) Update "screener-build.yml" to include lage's output (microsoft#24586) fix(react-theme): Change colorBrandForeground2 mapping in teamsDark theme (microsoft#24579) Add scoping for workflow (microsoft#24466) fix(react-theme): Swap Background1 and Foreground1 in HC color palette (microsoft#24498) applying package updates Add support for javascript date localization (microsoft#24577) fix: Combobox and Dropdown hover/active borders and padding style fixes (microsoft#24362) ...


New Behavior
Rename
colorNeutralForegroundInvertedStatictoken tocolorNeutralForegroundStaticInvertedin order to match design spec.NOT a breaking change
Theoretically this would be a breaking change, but since the token was added in #24027 no FUI version has been released.
cc @spmonahan