-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Update and add token values to improve accessibility #24027
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
Update and add token values to improve accessibility #24027
Conversation
|
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 62b3a34:
|
📊 Bundle size reportUnchanged fixtures
|
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: 5d985fac3569513a2808a9f3b93ad73907325e55 (build) |
Perf Analysis (
|
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| Avatar | mount | 1255 | 1278 | 5000 | |
| Button | mount | 972 | 973 | 5000 | |
| FluentProvider | mount | 1588 | 1565 | 5000 | |
| FluentProviderWithTheme | mount | 631 | 630 | 10 | |
| FluentProviderWithTheme | virtual-rerender | 585 | 589 | 10 | |
| FluentProviderWithTheme | virtual-rerender-with-unmount | 641 | 634 | 10 | |
| MakeStyles | mount | 1900 | 1938 | 50000 | |
| SpinButton | mount | 2487 | 2495 | 5000 |
c5fe111 to
14db56b
Compare
|
Screener issues; [Dark theme] Ghost/subtle badge & [High Contrast] Ghost/subtle badgeSee my exploration and proposed solution to this issue. [Dark theme] Checked switch
|
|
@redongreen I had the wrong background colors for Switch but they are now updated. |
|
@spmonahan to address issues with Spinner verify that we are using the following tokens; One known issue is that we do not have an alias token to cover light and dark mode for the inverted track, we are using a global value white @ 20% alpha. Also, the spinner component is intended to be displayed over an overlay; therefore, the tool might fail to contrast test if no overlay is applied. @daisygeng for visibility! |
Updates the values of some neutral foreground and background tokens to achieve better color contrast to meet accessibility requirements.
Updates color tokens for Popover and adds a new Storybook story to make it easier to see the different Popover appearances.
Changed from `colorBrandBackground*` to `colorCompoundBrandBackground*`.
Updates color tokens for better contrast and accessibility. Simplifies some of the styling logic.
Adds a background wrapper to ensure inverted Spinners are consistently visible in all test cases.
bcaaccb to
d3bc4b1
Compare
We want to avoid using foreground tokens for backgrounds.





Current Behavior
Current token values fail some accessibility tests.
New Behavior
New token values pass the failing accessibility tests.
Related Issue(s)
Fixes #24014