-
Notifications
You must be signed in to change notification settings - Fork 2.9k
feat(tokens): Add status color tokens #28006
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
feat(tokens): Add status color tokens #28006
Conversation
📊 Bundle size reportUnchanged fixtures
|
caf4451 to
57973da
Compare
Perf Analysis (
|
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| InfoButton | mount | 11 | 13 | 5000 | Possible regression |
All results
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| Avatar | mount | 583 | 601 | 5000 | |
| Button | mount | 290 | 301 | 5000 | |
| Field | mount | 1041 | 1064 | 5000 | |
| FluentProvider | mount | 672 | 653 | 5000 | |
| FluentProviderWithTheme | mount | 73 | 82 | 10 | |
| FluentProviderWithTheme | virtual-rerender | 65 | 69 | 10 | |
| FluentProviderWithTheme | virtual-rerender-with-unmount | 65 | 68 | 10 | |
| InfoButton | mount | 11 | 13 | 5000 | Possible regression |
| MakeStyles | mount | 825 | 869 | 50000 | |
| Persona | mount | 1620 | 1636 | 5000 | |
| SpinButton | mount | 1311 | 1317 | 5000 |
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: e6e662c52a7a7d9c4a9f95e01e1e2194f4e72b04 (build) |
|
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 771f040:
|
🕵 fluentuiv9 No visual regressions between this PR and main |
bbe63b9 to
e587df9
Compare
a5887ae to
888b51b
Compare
🕵 fluentuiv9 No visual regressions between this PR and main |
888b51b to
771f040
Compare
marcosmoura
left a comment
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.
Approved for files owned by @microsoft/fluentui-react-build
* master: chore(cxe-prg): migrate to new slot API (microsoft#28752) chore(teams-prg): migrate to new slot API (microsoft#28751) chore: re-export slot and assertSlots methods (microsoft#28755) Docs(react-tree): Improve docs and stories (microsoft#28741) feat: implements nested tree selection (microsoft#28668) applying package updates applying package updates feature(react-utilities): implements new slot methods (`slot` and `assertSlots`) (microsoft#28373) fix(TimePicker): Selection now works in locales that don't use "am"/"pm" in their time format (microsoft#28469) bugfix: ensures controlled state works properly + (microsoft#28665) feat(tokens): Add status color tokens (microsoft#28006) feat(tokens): Add colorBrandStroke2Contrast and colorNeutralStrokeAlpha2 (microsoft#28638) Made BreadcrumbButton consistent with Item and Link (microsoft#28672)
* master: chore(cxe-prg): migrate to new slot API (microsoft#28752) chore(teams-prg): migrate to new slot API (microsoft#28751) chore: re-export slot and assertSlots methods (microsoft#28755) Docs(react-tree): Improve docs and stories (microsoft#28741) feat: implements nested tree selection (microsoft#28668) applying package updates applying package updates feature(react-utilities): implements new slot methods (`slot` and `assertSlots`) (microsoft#28373) fix(TimePicker): Selection now works in locales that don't use "am"/"pm" in their time format (microsoft#28469) bugfix: ensures controlled state works properly + (microsoft#28665) feat(tokens): Add status color tokens (microsoft#28006) feat(tokens): Add colorBrandStroke2Contrast and colorNeutralStrokeAlpha2 (microsoft#28638) Made BreadcrumbButton consistent with Item and Link (microsoft#28672) fix(EventListener): do not use `defaultProps` (microsoft#28725)

This PR adds status color tokens to theme
tokenspackage.It adds
success,warninganddangertokens which are mapped:success ➡️
greenwarning ➡️
orangedanger ➡️
cranberryEach status color defines 10 tokens with the following mapping in individual themes:
colorStatus${color}Background1colorStatus${color}Background2colorStatus${color}Background3colorStatus${color}Foreground1colorStatus${color}Foreground2colorStatus${color}Foreground3colorStatus${color}ForegroundInvertedcolorStatus${color}BorderActivecolorStatus${color}Border1colorStatus${color}Border2Where

${color}is one ofsuccess,warninganddanger. The mapping is the same for all three status colors with the following one-off overrides:This are the hex values of all status tokens in code:
The tokens are currently not used anywhere in component styles.