Closed Bug 1550040 Opened 5 years ago Closed 5 years ago

[contrast] Badge in the main tree can be confused with the "contrast" button in toolbar

Categories

(DevTools :: Accessibility Tools, enhancement)

enhancement
Not set
minor

Tracking

(firefox68 fixed)

RESOLVED FIXED
Firefox 68
Tracking Status
firefox68 --- fixed

People

(Reporter: fvsch, Assigned: fvsch)

References

Details

Attachments

(3 files)

Small UX issue: the toolbar button and the "contrast" badge in the tree look similar, which can be confusing.

Especially in this scenario:

  1. Spot the "contrast" button in the toolbar.
  2. Click the button. Wait for results.
  3. Results seem to contain "contrast" buttons too, and it's unclear if they should be clicked.

Note: just my perception; haven't done any user testing.
We can close this bug if we think it's not an issue.

One possible solution would be to show a "warning" icon in the tree badges to set them apart from the button.

Icon used is a 10x10px warning icon like we used to have in the console (current one is 12x12):

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10" width="10" height="10">
  <path fill="context-fill" fill-rule="evenodd" d="M4 .6a1.13 1.13 0 0 1 2 0l3.88 7.8c.17.35.17.75-.04 1.07-.2.33-.58.53-.96.53H1.1c-.37 0-.74-.2-.94-.52-.2-.33-.2-.73-.04-1.07L4 .6zm1 6.2c.54 0 1 .46 1 1s-.46 1-1 1c-.55 0-1-.46-1-1s.45-1 1-1zm0-4.3c.54 0 1 .46 1 1V5c0 .54-.46 1-1 1-.55 0-1-.46-1-1V3.5c0-.54.45-1 1-1z"/>
</svg>

I made an even smaller warning icon (9x9):
https://www.figma.com/file/eIiHpT9Eg6hIA54nz1RIT9xh/Tiny-warning-icon

See attachment for how it looks in context.

Attachment #9063549 - Flags: ui-review?(victoria)
Attachment #9063712 - Flags: ui-review?(victoria)
Pushed by florens@fvsch.com:
https://hg.mozilla.org/integration/autoland/rev/5df94e4b78cc
Add warning icon to contrast warning badge; r=yzen,mtigley
Assignee: nobody → florens
Status: NEW → ASSIGNED

Victoria, I forgot about the UI review and landed the patch. But we can always make a follow-up patch if we want to change the icon.

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 68
Attachment #9063712 - Flags: ui-review?(victoria) → ui-review+
Attachment #9063549 - Flags: ui-review?(victoria) → ui-review+

Victoria, I forgot about the UI review and landed the patch. But we can always make a follow-up patch if we want to change the icon.

No problem - it looks great! Thanks for working on this!

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: