-
-
Couldn't load subscription status.
- Fork 4.6k
Fix border color contrast #35315
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 border color contrast #35315
Conversation
|
/backport to stable25 |
Tests fail |
Signed-off-by: Christopher Ng <chrng8@gmail.com>
4d2a9b1 to
a0266d1
Compare
|
@Pytal theming tests are failing on master now, please fix them. I'll ignore them for now as we need to ship the RC soon. |
Rather, They are failing on Fixed in #35415 |
Border color contrast requirements
To meet WCAG AA contrast requirements for border colors, categorized under “Graphical Objects and User Interface Components”, a minimum 3:1 foreground-background contrast ratio is required
Primary color borders
Original color is lightened slightly
#00639a→#006aa3Before/After contrast ratios
Dark mode
Light mode
General-purpose borders
Dark mode
--color-border:#292929→#646464--color-border-dark:#3b3b3b→#787878(greater contrast on dark backgrounds due to being lighter than--color-border)Light mode
--color-border:#ededed→#949494--color-border-dark:#dbdbdb→#808080(greater contrast on light backgrounds due to being darker than--color-border)Before/After contrast ratios
Dark mode
Light mode
Examples
Primary + general border colors
General border color usage