Closed Bug 1926794 Opened 28 days ago Closed 23 days ago

Umatched selectors, overridden/inactive declarations don't have distinct color in High Contrast Mode

Categories

(DevTools :: Inspector: Rules, defect, P3)

defect

Tracking

(firefox134 fixed)

RESOLVED FIXED
134 Branch
Tracking Status
firefox134 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

We can use GrayText for those

The variable was used in a few places for elements that are not inactive.
It was probably picked because of its lighter color, but we do have
specific variable for that (for text and icons), that are better suited
and already adapt to High Contrast Mode.
In one case, the rule using it wasn't even used, so I removed it completely.

Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED

We're setting --theme-text-color-inactive to GrayText in HCM,
and we use this variable for styling unused/inactive items in
the Rules view, as we still want --theme-text-color-alt to have
the default canvas text in HCM.
In non-HCM, --theme-text-color-inactive was lacking contrast
against the usual background, so it's updated to have
sufficient contrast.

The Bugbug bot thinks this bug should belong to the 'DevTools::Inspector: Rules' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: General → Inspector: Rules
Attachment #9433028 - Attachment description: Bug 1926794 - [devtools] Use GrayText for unmatched selector, unused and overridden declerations in High Contrast Mode. r=#devtools. → Bug 1926794 - [devtools] Use GrayText for unmatched selector, unused and overridden declarations in High Contrast Mode. r=#devtools.
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7e3b74a648bb [devtools] Replace incorrect usage of --theme-text-color-inactive. r=devtools-reviewers,bomsy. https://hg.mozilla.org/integration/autoland/rev/1e442fe98563 [devtools] Use GrayText for unmatched selector, unused and overridden declarations in High Contrast Mode. r=devtools-reviewers,bomsy.
Status: ASSIGNED → RESOLVED
Closed: 23 days ago
Resolution: --- → FIXED
Target Milestone: --- → 134 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: