Closed Bug 1485243 Opened 6 years ago Closed 6 years ago

Add highlights to the source link, selector and computed properties when filtering styles

Categories

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

enhancement

Tracking

(firefox63 fixed)

RESOLVED FIXED
Firefox 63
Tracking Status
firefox63 --- fixed

People

(Reporter: gl, Assigned: gl)

References

Details

Attachments

(1 file)

In Bug 1400319, I changed:

.ruleview-highlight {
  background-color: var(--rule-highlight-background-color);
}

to

.ruleview-highlight > .ruleview-namecontainer,
.ruleview-highlight > .ruleview-propertyvaluecontainer {
  background-color: var(--rule-highlight-background-color);
}

to align with the designs I was looking at the time, but we actually missed a lot of selectors to include with this. We used to be able to highlight the selector, source link and computed properties when filtering styles in the Rules view.
Attached patch 1485243.patchSplinter Review
Attachment #9003016 - Flags: review?(bgrinstead)
Comment on attachment 9003016 [details] [diff] [review]
1485243.patch

Review of attachment 9003016 [details] [diff] [review]:
-----------------------------------------------------------------

::: devtools/client/themes/rules.css
@@ +531,2 @@
>  .ruleview-highlight > .ruleview-namecontainer,
> +.ruleview-highlight > .ruleview-propertyvaluecontainer,

I guess in this case the .ruleview-namecontainer is the node that gets the .ruleview-highlight class? Since it's now the parent of these nodes.
Attachment #9003016 - Flags: review?(bgrinstead) → review+
Comment on attachment 9003016 [details] [diff] [review]
1485243.patch

Review of attachment 9003016 [details] [diff] [review]:
-----------------------------------------------------------------

::: devtools/client/themes/rules.css
@@ +531,2 @@
>  .ruleview-highlight > .ruleview-namecontainer,
> +.ruleview-highlight > .ruleview-propertyvaluecontainer,

It's .ruleview-propertycontainer and .ruleview-computed that gets the .ruleview-highlight class for the properties. I added a wrapper container around the computed properties so that we can get proper highlighting of the computed properties.
https://hg.mozilla.org/mozilla-central/rev/88cfe9dfcb97
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 63
Depends on: 1487177
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: