Closed Bug 1558226 Opened 5 years ago Closed 5 years ago

Event listener tooltip should use the common DevTools arrow.svg expand icon

Categories

(DevTools :: Inspector, enhancement, P3)

enhancement

Tracking

(firefox69 fixed)

RESOLVED FIXED
Firefox 69
Tracking Status
firefox69 --- fixed

People

(Reporter: fvsch, Assigned: fvsch)

References

Details

Attachments

(2 files)

The triangle icons used in the event headers are Unicode characters:

.event-header::before {
    content: "▶︎";
}

Two downsides:

  • Those characters can render wildly differently between operating systems.
  • When changing the character from ▶︎ to the transition between the two is usually not great, ideally we want to rotation from the center point.

Let's use our theme-twisty icon (devtools/client/themes/images/arrow.svg) instead.

Type: defect → enhancement
Priority: -- → P3

Hi Victoria, do these small visual tweaks look good to you?
(Left: before; right: after.)

Attachment #9071037 - Flags: ui-review?(victoria)
Assignee: nobody → florens
Status: NEW → ASSIGNED
  • Uses theme-twisty for the triangle icon
  • Fixed: icon now has the correct orientation in RTL (handled by theme-twisty styles in common.css)
  • Fixed: header rows are now always 24px tall excluding the border (before they were all 25px tall, including the first one
  • Tweaked: make the event name 12px (our usual "biggish font" size, used in accordion headers and tab labels).
Comment on attachment 9071037 [details]
event-header-before-after.png

Wow, these changes are great! Thank you!
Attachment #9071037 - Flags: ui-review?(victoria) → ui-review+
Blocks: 1560356
No longer blocks: 1560356
See Also: → 1560356
Attachment #9071039 - Attachment description: Bug 1558226 - Use theme-twisty in event tooltip headers; r=gl → Bug 1558226 - Use theme-twisty in event tooltip headers; r=miker

New try push after a rebase, let's see if those oranges are still around.
https://treeherder.mozilla.org/#/jobs?repo=try&revision=f53013d95fe982bd8a90b26391858efc75642a5f

Pushed by florens@fvsch.com:
https://hg.mozilla.org/integration/autoland/rev/704aa0566495
Use theme-twisty in event tooltip headers; r=miker
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 69
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: