Fix HCM styling of input type="range"
Categories
(Core :: Layout: Form Controls, defect, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox129 | --- | fixed |
People
(Reporter: ini, Assigned: ini)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
In the Windows 11 Night Sky Contrast Theme, the input type="range" slider does not have any active or hover styling. In non-HCM, the slider has color changes for both states. A possible set of colors for HCM could be:
- On hover, the slider track and slider thumb outline is highlighted with the SelectedItem color.
- In the active state, the slider track has the SelectedItem color while the slider thumb outline has the ButtonText color.
Instead of the slider thumb outline being highlighted, the inner fill could also be recolored to match the non-HCM styling. See Figma designs of HCM slider for examples.
This is reproducible by going to the example range input on MDN with Windows 11 Night Sky enabled under Settings -> Accessibility -> Contrast themes.
Updated•1 year ago
|
Comment 1•1 year ago
|
||
Relevant code is here: https://searchfox.org/mozilla-central/rev/b11735b86bb4d416c918e2b2413456561beff50c/widget/Theme.cpp#912-934
In particular ComputeRangeProgressColors and co don't account for the active / hover / etc here.
Same for ComputeRangeTrackColors here.
So the fix should be relatively simple, the tricky thing is verifying the colors chosen work for all HCM themes on Windows 10 and 11...
| Assignee | ||
Comment 2•1 year ago
|
||
Updated•1 year ago
|
| Assignee | ||
Comment 3•1 year ago
|
||
After consulting with the a11y team, we decided to go with this design for the default, hover, active, and disabled states. I have submitted a patch with these changes.
Comment 5•1 year ago
|
||
| bugherder | ||
Description
•