-
Notifications
You must be signed in to change notification settings - Fork 759
Use the same expand arrow icon as Inspector, Console etc. #7566
Comments
@fvsch Could you detail where this would be implemented? Sources Tree? Accordion? Object Inspector? |
All of them. :) One way to proceed is to take https://searchfox.org/mozilla-central/source/devtools/client/themes/images/arrow.svg, remove the Then we need to do a pass on every place that uses this icon, to make sure the icon is rendered at 10x10 (not smaller, not bigger). For example in the Sources tree, currently we have an So with the new icon, we need to change the image's width and height to 10px, probably remove 1px from its Second example: the pane header arrows. Here we use the same icon I believe, but injected as SVG nodes in the DOM, and sized at 10px. We could use the icon as a mask here as well, and apply it directly to the parent Then there is the object inspector, and maybe some other uses in the stack trace pane I believe? Oh, and the arrow's color (so, the background color of the masked elements) should be one of these two variables:
|
/claim |
Thanks for claiming the issue! 👋 Here are some links for getting setup, contributing, and developing. We're always happy to answer questions in slack! If you become busy, feel free to 🦊 Debugger team! |
Hello @ash-tamraz! Are you still working on this or should we open it up? |
I'm still working on this, @darkwing, just taking longer than I wanted. Sorry about that! |
No problem @ash-tamraz ! We appreciate your efforts! |
We updated the expand arrow icon recently (ux issue) and implemented the new icon in mozilla-central but not yet in Debugger/Reps.
The correct icon can be found here:
https://searchfox.org/mozilla-central/source/devtools/client/themes/images/arrow.svg
It's a 10x10 icon, but is visually just 8x8. It will probably appear a little bit smaller than the current icon in Debugger.
When it's implemented as an icon-only button (e.g. if the user needs to click the icon itself, rather than the surrounding label or row), we should aim for a minimum button size of 14x14 pixels (which is tiny, but better than 10x10, and a bigger button often doesn't work with our small text and line-height).
The text was updated successfully, but these errors were encountered: