firefox-devtools / ux

Firefox DevTools UX Community
Mozilla Public License 2.0
103 stars 21 forks source link

Review icon used for node reps #108

Open nchevobbe opened 4 years ago

nchevobbe commented 4 years ago

The icon currently used for node reps can be confusing.

image

in the console this icon acts as an element picker in the ruleview and animation inspector, the icon acts as a highlighter

We should settle on one icon for picking elements and one icon for highlighting.

fvsch commented 4 years ago

I kinda like the current icon when used outside of Inspector, if the action is "go to Inspector and select that node". Especially since it's basically a smaller variant of the Inspector's tab icon.

So I would err on the side of figuring out a different icon for "highlight this element / all elements matching this selector". Although it's a tough concept to communicate visually.

Pinging @captainbrosset and @juliandescottes for the Inspector side.

nchevobbe commented 4 years ago

i wonder if we could have an icon version of the box model UI

image
captainbrosset commented 4 years ago

It would be useful to make a comprehensive list of all the places where this icon is used and what it does in each. The hope is that some of these that act differently than most can be changed to be consistent with the rest.

nchevobbe commented 4 years ago

Here's the inventory (I think I reviewed all usages)

console

image

clicking on the icon jumps to the inspector and selects the node hovering highlight the node on screen

acessibility

image

clicking on the icon jumps to the inspector and selects the node hovering highlight the node on screen (same as console)

dom panel

image

clicking on the icon jumps to the inspector and selects the node hovering highlight the node on screen (same as console)

Rule view

image

clicking on the icon sets the highlighter for elements matching the selector (clicking again removes the highlighter)

Layout view - grid section

image

clicking on the icon jumps to the inspector and selects the node hovering highlight the node on screen (same as console)

Layout view - Box model properties section (offset node)

image

clicking on the icon jumps to the inspector and selects the node hovering highlight the node on screen (same as console)


Basically, the rule view is at odd with all the other places we use this icon.

fvsch commented 4 years ago

Thanks a bunch Nicolas. So we could try to change the icon for "Highlight all elements matching this selector" in Rules.

Do we know if end users struggle with this specific button? If they understand it as a way to jump to the Inspector, they may be ignoring it (since they're already in the Inspector).

Possible visual metaphors:

captainbrosset commented 4 years ago

Thanks a lot Nicolas. There's one more case I know about in the Animation inspector:

Screenshot 2020-01-30 at 14 25 55

Clicking on the icon highlights the node, clicking again turns off the highlighter.

So, finding a different icon for this one would be great. As for the rule-view, that reminds me that we have a chrome-parity bug on file (I think) to actually highlight on selector hover instead of having an icon. So maybe we could do this instead and get rid of the icon.

SebastianZ commented 4 years ago

As for the rule-view, that reminds me that we have a chrome-parity bug on file (I think) to actually highlight on selector hover instead of having an icon. So maybe we could do this instead and get rid of the icon.

I actually prefer the icon over the hover functionality, first because it is more obvious and second because it keeps the highlighter active and by that allows to scroll through the page to see all matches.

Sebastian

violasong commented 3 years ago

We could have these two cases:

  1. No icon needed: hover text to highlight in page and use light blue background-hover color. Current examples: Markup, Fonts Panel. Future examples: selector names, properties, badges.

  2. Icon: hover to highlight, click to jump to first matching element in Inspector markup. Example: Console, etc. (not sure if we need the persist highlight feature in Rules.)

cc: @digitarald @gabrielluong @martinbalfanz