Skip to content

Optional Inline Labels in Toolbar #10524

Closed

Description

@tomjn

Is your feature request related to a problem? Please describe.
Icon only toolbars are fine for some people, and some have a preference for it ( e.g. myself ).

However, some people are unable to effectively use icon only toolbars, perhaps it's their preference, but for some people it has an a11y aspect. This could be similar to face blindness or forms of dyslexia.

For those people tooltips are not enough, and the friction of hovering over each button and waiting for the tooltip to display is immense.

Research indicates that a combination of icons and texts yields the widest and greatest recognition speed possible, at the cost of space

Describe the solution you'd like

MacOS solves this problem by providing options when customising toolbars, e.g.:
screenshot 2018-10-11 at 17 24 05

Icons only:

screenshot 2018-10-11 at 17 23 23

Icons and text:

screenshot 2018-10-11 at 17 23 29

Text only:

screenshot 2018-10-11 at 17 23 37

I've mocked up what an icons and text mode may look like in Gutenberg:

screenshot 2018-10-11 at 17 19 59

To me this looks like a clear improvement for some, and makes for much larger target areas on larger devices. I believe the icons only should remain as the default option however

I'm unsure how it would look placed underneath as MacOS does. I'm also unsure how well a text only option would fair, but it would look a lot prettier than MacOS given the current Gutenberg UI styling.

Activity

  1. added
    [Type] Enhancement
    [Focus] Accessibility (a11y)
    [Feature] UI Components
    on Oct 11, 2018
  2. added this to the Future: 5.1 Onwards milestone on Oct 12, 2018
  3. added
    Needs Design Feedback
    on Oct 12, 2018
  4. Luciaisacomputer commented on Oct 17, 2018

    @Luciaisacomputer
    Contributor

    This makes sense to me. I'd even prefer to have it as the default with a "minimal UI" as the second option to remove the labels.

  5. afercia commented on Feb 23, 2019

    @afercia
    Contributor

    Some background: "icon-only" controls (buttons with no visible text label) are problematic for many reasons. They're an accessibility anti-pattern as pointed out in the first Gutenberg accessibility report from the accessibility team.

    They're also a big problem for speech input users, as well explained in #470 (comment)

    A few previous related comments:

  6. mapk commented on Mar 8, 2019

    @mapk
    Contributor

    Maybe we can add a checkbox in the Options modal which, when selected, turns on those icon labels? Something like this?

    screen shot 2019-03-07 at 8 48 53 pm

  7. afercia commented on Mar 8, 2019

    @afercia
    Contributor

    I'd love to see this explored. There are a few challenges, for example we can't predict the length of the labels when translated. Also, I'm not sure how to address other icon-only controls, for example in the block toolbar.

    I wouldn't group the option under an "Accessibility" section: this would be a feature that can benefit everyone.

    I'd consider to explore how the text label would look when placed below the icons. The text doesn't necessarily needs to be "big". It can be a bit smaller, as long as it's readable. For inspiration (Android):

    37083107-c3abb932-21ee-11e8-91b5-7acc08bceaf6

    This would save some horizontal space, even though there needs to be some spacing between the icons.

  8. mikelittle commented on Mar 11, 2019

    @mikelittle

    I have some kind of 'icon blindness' and struggle to distinguish one icon from another. So having a text option would be a really big help. In most apps, I turn it on whenever I can, though at least on the desktop, many already have them turned on.
    I also agree it should not be an 'accessibility' option it should be a standard configurable option like 'top toolbar'.

  9. mapk commented on Mar 12, 2019

    @mapk
    Contributor

    I wouldn't group the option under an "Accessibility" section: this would be a feature that can benefit everyone.

    That makes sense. Thanks for sharing!

    icon-labels

  10. mapk commented on Mar 16, 2019

    @mapk
    Contributor

    Here are some mockups regarding this discussion.

    Top: The icon only state.
    Middle: Icons + text (side by side)
    Bottom: Icons + text (underneath)

    Screen Shot 2019-03-15 at 5 33 11 PM

  11. mapk commented on Apr 10, 2019

    @mapk
    Contributor

    @enriquesanchez I heard you might have some thoughts (and possible mockups) around this. Would you mind sharing? I know my mockups can use a lot of help. 😉

  12. enriquesanchez commented on Apr 10, 2019

    @enriquesanchez
    Contributor

    👋 Hey everyone!

    My explorations were very similar to the ones already shared:
    Screen Shot 2019-04-10 at 4 16 28 PM

    While I think that having the label below the icon would scale better and should prove to be easier to work with on smaller viewports, I also share @afercia 's concerns about the labels being too long when translated to different languages. To give an idea of how much more space some labels will need, here's a side by side comparison of the toolbar in english and spanish:

    Screen Shot 2019-04-10 at 5 05 41 PM

    I assume we might be able to work around this issue by tweaking some media queries, but I'm not sure if this is something that can be done based on what language the UI is set to 🤔

  13. afercia commented on Apr 10, 2019

    @afercia
    Contributor

    concerns about the labels being too long

    Yep. Just noting that on some smartphone UIs, where the pattern with labels below the icons is not unusual, there are clearly strict rules about the length of the labels. Of course, that's possible because the mobile UIs are a very controlled environment but maybe worth exploring some rules to keep the Gutenberg labels as short as possible.

  14. 21 remaining items

  15. added
    Needs Dev
    and removed
    Needs Design Feedback
    on Dec 16, 2019
  16. tellthemachines commented on Jul 28, 2020

    @tellthemachines
    Contributor

    Would it be worth exploring replacing the icons with labels, instead of just adding labels to the existing icons? Seems like this could help with some of the issues around space on smaller screens.

  17. ZebulanStanphill commented on Jul 28, 2020

    @ZebulanStanphill
    Member

    I've seen some apps have all 3 choices: text only, text + icon, and icon only. Perhaps we should do the same?

    I do think that running out of space for toolbar options is inevitable no matter what we do. We have to figure out how to handle that situation when it happens. I'd say just move stuff into the ellipsis menu as necessary, with the stuff on the right being moved into it first. If that causes important actions to get folded into the menu too early, then maybe those actions shouldn't be there in the first place.

    I know there have been some accessibility concerns about placing the save/publish actions in the top bar in the first place. Perhaps this is a good time to rethink how we organize controls. Why do we have a left half and a right half of the top bar? Why does the Top Toolbar option stick the block toolbar in the middle of the top toolbar? For ideal accessibility, controls should be laid out in a logical order that makes sense. I think a lot of the problems we're running into are a result of the top toolbar being weirdly laid out.

  18. mapk commented on Jul 29, 2020

    @mapk
    Contributor

    Would it be worth exploring replacing the icons with labels, instead of just adding labels to the existing icons? Seems like this could help with some of the issues around space on smaller screens.

    @tellthemachines it looks like @jasmussen explored that here: #15830 (comment)

    I like that solution, myself. 👍

    I edited the link as noted by @ZebulanStanphill below.

  19. ZebulanStanphill commented on Jul 29, 2020

    @ZebulanStanphill
    Member

    @mapk I think the link in your comment is pointing to the wrong thing.

  20. added
    [Status] In Progress
    on Jul 31, 2020
  21. jasmussen commented on Aug 3, 2020

    @jasmussen
    Contributor

    For what it's worth, I mostly explored the text only solution to leave no stone unturned. I am leaning more towards #15830 (comment) as the best approach. And I believe the most important step towards that (but a step that would benefit regardless of the approach), is to rephrase some of the very long labels into something smaller. "More tools & options" comes to mind as something that could be reduced.

  22. afercia commented on Aug 3, 2020

    @afercia
    Contributor

    rephrase some of the very long labels into something smaller. "More tools & options" comes to mind as something that could be reduced.

    I'd agree. Although there's the need to differentiate the various "More" buttons. Also, when it comes to translations, worth reminding a previous comment:

    Regardless of the small inconsistencies, it seems to me the various translations (note: on other apps) are crafted to respect a maximum length. Wondering if the Gutenberg UI should have a sort of "style guide" for translations.

    At the very least, a maximum length should be recommended in a translator comment or by other means. I'd tend to think a real "style guide" for translators, with screenshots of the UI and detailed recommendations, would be even better.

  23. tellthemachines commented on Aug 4, 2020

    @tellthemachines
    Contributor

    For what it's worth, I mostly explored the text only solution to leave no stone unturned. I am leaning more towards #15830 (comment) as the best approach.

    I'm currently exploring a text-only solution for the top toolbar in #24304 , and it works well in that area, but I'm not fully convinced it'll work as well in the block toolbar, especially with the text formatting tools. Perhaps I'll give it a try with the icons. Would it be useful to have both as an option?

    At the very least, a maximum length should be recommended in a translator comment or by other means.

    I'll add some comments in. What would be a good maximum length here?

  24. mapk commented on Aug 4, 2020

    @mapk
    Contributor

    I am leaning more towards #15830 (comment) as the best approach.

    @jasmussen, I've prepared some iterations and can use some feedback: #24304 (comment)

    My Figma file has many smaller iterations on various parts of the topbar if you wanted to see those.

  25. jasmussen commented on Aug 5, 2020

    @jasmussen
    Contributor

    I don't want to block anyone from moving forward, to be clear! Any first baseline seems a good place to start, and there's no reason we can't iterate from there. Blaze a trail!

  26. afercia commented on Aug 6, 2020

    @afercia
    Contributor

    What would be a good maximum length here?

    I think this is mostly a design decision on whether to allow the buttons to take more space )increase the width) when necessary or not. I'd suggest to switch the user language and check "live" with the PR you're working on how the toolbar would look with such languages. Amongst the European languages, the ones that typically have longer strings are German, French, and also Spanish and Italian. That could give a better idea of the problem that needs to be solved 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Needs Dev[Feature] UI Components[Focus] Accessibility (a11y)[Status] In Progress[Type] Enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions