Closed Bug 1926852 Opened 10 months ago Closed 10 months ago

Rules view property name/value hover dashed underline is always visible in high Contrast Mode

Categories

(DevTools :: Inspector: Rules, defect)

defect

Tracking

(firefox134 fixed)

RESOLVED FIXED
134 Branch
Tracking Status
firefox134 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

The dashed line should only be shown on hover, but it's created with a bottom border, which is transparent by default, and gets turned grey on hover.
in High Contrast Mode , transparent is transformed into a solid color, and so the line is always visible, even when properties are not hovered

Using text-decoration allows us to only do it on hover, as it doesn't
triggers a layout shift (contrary to bottom border). This way, it also
prevent always showing the border in High Contrast Mode, where transparent
color is ignored.

Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/bc5dac32dbd7 [devtools] Use text-decoration to indicate editable items in Rules view declaration. r=devtools-reviewers,bomsy.
Status: ASSIGNED → RESOLVED
Closed: 10 months ago
Resolution: --- → FIXED
Target Milestone: --- → 134 Branch
Regressions: 1972504
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: