Repository navigation
Description
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.:

Icons only:
Icons and text:
Text only:
I've mocked up what an icons and text mode may look like in Gutenberg:
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
Luciaisacomputer commentedon Oct 17, 2018
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.
afercia commentedon Feb 23, 2019
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:
mapk commentedon Mar 8, 2019
Maybe we can add a checkbox in the Options modal which, when selected, turns on those icon labels? Something like this?
afercia commentedon Mar 8, 2019
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):
This would save some horizontal space, even though there needs to be some spacing between the icons.
mikelittle commentedon Mar 11, 2019
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'.
mapk commentedon Mar 12, 2019
That makes sense. Thanks for sharing!
mapk commentedon Mar 16, 2019
Here are some mockups regarding this discussion.
Top: The icon only state.
Middle: Icons + text (side by side)
Bottom: Icons + text (underneath)
mapk commentedon Apr 10, 2019
@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. 😉
enriquesanchez commentedon Apr 10, 2019
👋 Hey everyone!
My explorations were very similar to the ones already shared:

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:
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 🤔
afercia commentedon Apr 10, 2019
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.
21 remaining items
tellthemachines commentedon Jul 28, 2020
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.
ZebulanStanphill commentedon Jul 28, 2020
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.
mapk commentedon Jul 29, 2020
@tellthemachines it looks like @jasmussen explored that here: #15830 (comment)
I like that solution, myself. 👍
I edited the link as noted by @ZebulanStanphill below.
ZebulanStanphill commentedon Jul 29, 2020
@mapk I think the link in your comment is pointing to the wrong thing.
jasmussen commentedon Aug 3, 2020
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.
afercia commentedon Aug 3, 2020
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:
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.
tellthemachines commentedon Aug 4, 2020
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?
I'll add some comments in. What would be a good maximum length here?
mapk commentedon Aug 4, 2020
@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.
jasmussen commentedon Aug 5, 2020
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!
afercia commentedon Aug 6, 2020
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 🙂