Replace #d74345 with an accessible CSS variable
Categories
(UX Systems :: Component, defect, P3)
Tracking
(Not tracked)
People
(Reporter: itiel_yn8, Assigned: shorlander)
References
Details
Attachments
(2 files)
See attached.
The same applies the "You are not securely connected to this site" string.
Comment 1•5 years ago
|
||
Please assign this bug to me
Thanks
Updated•5 years ago
|
Comment 2•5 years ago
|
||
Depends on D68015
Updated•5 years ago
|
Updated•5 years ago
|
Comment 5•5 years ago
|
||
https://searchfox.org/mozilla-central/search?q=color%3A+%23d74345%3B&case=false®exp=false&path=
It should be a CSS variable with accessible colors for each theme. For #d74345, the dark theme contrast is 2.00 and the light theme contrast is 4.39 (checked using the a11y inspector), while the WCAG standards asks for at least 4.5 for normal text, 3 for large text.
The pocket usages should be excluded from this change though, since the pocket panel is always light.
Comment 6•5 years ago
|
||
I first introduced different values of red and tested, but felt it was too dull
The background color of the panel is slate color which is dull, so I went for a brighter color(for dull-bright contrast)
Also if one looks at "Connection is secure" string, they would find the test yellowish green or greenish yellow which is bright too. Please check the brightness of this string.
The slate grey seemed to dull the red, I don't remember the different values I used, one of them was " #ff4500".
I did look at WCAG specifications for the contrast, but a layperson would be looking at these and the text has to stand out, this is why the brightening by changing to #ff9900
Comment 7•5 years ago
|
||
I'm going to bring this up with the UX Systems team. I also noticed that the green (secure connection) also does not pass contrast ratio. This feels like something that needs to be fixed on all of dark theme consistently. Adding NI on myself to get back to this bug when I have more info!
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Description
•