Closed Bug 1906125 Opened 3 months ago Closed 2 months ago

Unify CSS rules around various tree expand arrows

Categories

(DevTools :: General, enhancement)

enhancement

Tracking

(firefox130 fixed)

RESOLVED FIXED
130 Branch
Tracking Status
firefox130 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

Details

Attachments

(4 files)

There is a lot of duplicated and slightly different ways to handle arrows in our various trees.
Let's try to unify that a bit, so that the various tree behaves the same, while removing a bunch of CSS rules.

  • make them both use .theme-twisty to show an arrow icon.
  • move some specifics stylings of SourcesTree to the base class.
  • make SourcesTree use the arrow React component provided by Tree class.
  • use .theme-twisty instead of .arrow (which already implements rotation and colors on expand). But it uses "open" instead of "expanded" classname.
    (VirtualizedTree was already using theme-twisty)

This impacts the Source Tree, ObjectInspector (console, debugger), Watch Expressions, memory panel (dominator view).

Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED

We could also drop the custom "focused" classname and instead rely on one being put by VirtualizedTree on tree-node
(like Tree is doing).

Blocks: 1906906
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a8eff52b3a26 [devtools] Unify VirtualizedTree and Tree CSS and move SourcesTree specifics to Tree. r=devtools-reviewers,nchevobbe https://hg.mozilla.org/integration/autoland/rev/0c2896d93e21 [devtools] Use default Tree stylesheets for the memory panel. r=devtools-reviewers,nchevobbe https://hg.mozilla.org/integration/autoland/rev/92c474b8b41a [devtools] Fix arrows orientation of debugger accordion in RTL. r=devtools-reviewers,nchevobbe https://hg.mozilla.org/integration/autoland/rev/be6b3324bc2c [devtools] Implement memory panel odd background in CSS instead of JS. r=devtools-reviewers,nchevobbe
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: