Closed Bug 1933651 Opened 1 year ago Closed 1 year ago

Unmatched rules have lower opacity which causes contrast issues (in both regular and High Contrast Mode)

Categories

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

defect

Tracking

(firefox135 fixed)

RESOLVED FIXED
135 Branch
Tracking Status
firefox135 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

See https://searchfox.org/mozilla-central/rev/dfaf02d68a7cb018b6cad7e189f450352e2cde04/devtools/client/themes/rules.css#355-358

.ruleview-rule.unmatched,
.ruleview-rule[unmatched=true] {
  opacity: 0.5;
}

We could probably use GrayText for everything and/or add a grayscale filter?

Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Severity: -- → S3
Priority: -- → P2

Could be interesting to cross out the selector to convey that it's not matching

Actually, this isn't only an issue for High Contrast Mode.
In light theme, the selector has a 2.7:1 ratio (fails minimal contrast)
I'll expand my patch so it's a better solution for every situation

Blocks: devtools-a11y
No longer blocks: 1590215
Summary: Unmatched rules have lower opacity, which doesn't work well in High Contrast Mode → Unmatched rules have lower opacity which causes contrast issues (in both regular and High Contrast Mode)
Attachment #9440171 - Attachment description: Bug 1933651 - [devtools] Dont tweak opacity of unmatched rules in High Contrast Mode. r=#devtools. → Bug 1933651 - [devtools] Dont tweak opacity of unmatched rules. r=#devtools.
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9a80c79cdfdd [devtools] Dont tweak opacity of unmatched rules. r=devtools-reviewers,jdescottes.
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 135 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: