Active Rules view toolbar button style is almost the same as non-active buttons in High Contrast Mode
Categories
(DevTools :: Inspector: Rules, defect, P2)
Tracking
(Accessibility Severity:s2)
Accessibility Severity | s2 |
People
(Reporter: nchevobbe, Assigned: nchevobbe)
References
(Blocks 1 open bug)
Details
(Keywords: no-plan-to-ship)
Attachments
(4 files)
In the screenshot, the :hov
and "sun" button are active. The only difference is that their background is slightly lighter
Assignee | ||
Updated•2 months ago
|
Updated•2 months ago
|
Assignee | ||
Updated•2 months ago
|
Comment 1•2 months ago
|
||
The severity field for this bug is set to S3. However, the accessibility severity is higher, .
:jdescottes, could you consider increasing the severity?
For more information, please visit BugBot documentation.
Comment 2•2 months ago
|
||
For those bugs it's fine to have a different severity than the accessibility severity
Updated•2 months ago
|
Adding a keyword no-plan-to-ship
as an ad-hoc flag here. This keyword was meant to exclude specific bugs from the general access-S2
tracking when there are no plans to ship the affected feature. However, we do plan to address and ship this and other HCM-related devtools bugs, which are part of a larger project. This Dev Tools High Contrast Mode support project, tracked by the meta bug 1590215, is ongoing and is tracked by the Dev Tools team separately.
Assignee | ||
Comment 4•6 days ago
|
||
No element with the devtools-toolbarbutton
class can have a label or a checked attribute,
or can have .toolbarbutton-text
items, so we can remove some selectors and rules from the stylesheet.
We take this as an opportunity to refactor the stylesheet with CSS nesting.
Updated•6 days ago
|
Assignee | ||
Comment 5•6 days ago
|
||
Assignee | ||
Comment 6•6 days ago
|
||
The pressed style was reusing --toolbarbutton-hover-background, instead of using the more
semantically appropriate --toolbarbutton-checked-background.
The latter was having a very distinct style (blue background), which didn't match the
style we wanted. But, I don't think the style as used anywhere and seemed more like
a relic of a previous design, so I updated the variable to mimic what we currently
have in regular themes, and adapted the colors for High Contrast.
This way we can extract some selectors into their own rules so we have a more fine-grained
way to style those.
We take this as an opportunity to remove the --toolbarbutton-focus* variables and
the declarations using them as we now have proper focus indicator on the buttons.
Description
•