[accessibility] Contrast line for color selectors
Categories
(DevTools :: Inspector, enhancement, P3)
Tracking
(Not tracked)
People
(Reporter: karlcow, Unassigned)
References
(Blocks 2 open bugs)
Details
(Keywords: parity-chrome)
Attachments
(1 file)
|
144.60 KB,
image/png
|
Details |
Comment 3•9 years ago
|
||
Updated•8 years ago
|
Updated•8 years ago
|
Comment 4•6 years ago
|
||
Chrome now shows 2 lines in their color picker, one for AA and one for AAA color contrast ratios.
The code they use to do this can be seen here: https://github.com/ChromeDevTools/devtools-frontend/blob/f5d825ac1bb6eca13782947e30e5c5c78b9de1f0/front_end/color_picker/ContrastOverlay.js#L91
Comment 5•6 years ago
|
||
This is what the color picker looks like in Chrome Canary today (version 82).
Comment 6•6 years ago
|
||
Had a quick chat with Martin about this feature. There is one additional complexity when porting this to Firefox.
Firefox DevTools is trying to accommodate for backgrounds with different colors and still give an accurate accessibility rating for text displayed on top of such backgrounds.
For those backgrounds it won't be trivial to compute the "contrast lines".
We don't have a clear solution in mind, but we just wanted to highlight this additional difficulty.
I will initially focus on a version working against single color backgrounds, and that should give us opportunities to experiment for more complex backgrounds.
Updated•4 years ago
|
Updated•1 year ago
|
Description
•