Closed Bug 1912995 Opened 1 year ago Closed 1 year ago

Only show CSS variable value in variable tooltip (remove "--x = ")

Categories

(DevTools :: Inspector, task)

task

Tracking

(firefox131 fixed)

RESOLVED FIXED
131 Branch
Tracking Status
firefox131 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

Details

Attachments

(1 file)

The tooltip already points to the variable name, repeating the variable name in the toolip doesn't add a lot of values (and that's something we do in the debugger for example)

This changes the --x = red tooltip content into just red.
We still keep the --x is not set as I'm unsure what the alternative could be
(and given it would probably still need localized string, as we can use unset,
which is an actual valid value)

Tests are updated to include the new tooltip content.
devtools/client/inspector/rules/test/browser_rules_preview-tooltips-sizes.js is
further tweaked to cover a frequent intermittent.

Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8b5c851e16aa [devtools] Don't repeat variable name in CSS variable tooltip. r=devtools-reviewers,jdescottes.
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 131 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: