-
Notifications
You must be signed in to change notification settings - Fork 30
Ensure team colours have sufficient contrast #14998
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
base: main
Are you sure you want to change the base?
Conversation
ab60389 to
636af80
Compare
| const backgroundLight = sourcePalette.neutral[97]; | ||
| const backgroundDark = sourcePalette.neutral[10]; |
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.
Ideally we would get these from the palette declarations, but they're only available as custom properties so we would have to fetch the values on the client, preventing us from doing the contrast calculations during the server side render.
|
Hello 👋! When you're ready to run Chromatic, please apply the You will need to reapply the label each time you want to run Chromatic. |
6ddf57c to
1b12961
Compare
What does this change?
Checks team colours to ensure they meet WCAG minimum contrast requirements and adds contrasting colours as appropriate
Why?
Stats are shown using team colours and need to be readable in light and dark mode
Screenshots