New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Description for Icons #719
Comments
For those that use a mouse there is a tooltip style additional-text, and for those using a screenreader they have labels. The current gap is that those icons are not focusable without a screenreader, so people using switch access, other keyboard-like inputs or a touchscreen (without a screenreader) cannot access the tooltips. Whether making them tab-able is a good idea in this case is debatable, as these buttons are short-cuts to typing in markdown. I suspect it would be more hassle to shift-tab back up to the buttons, select one, and then tab back down compared to just typing in the markdown. However, I'm sure there are other examples where a toolbar is necessary for the usage. The other counter-point is that if a toolbar like this were to add the text as visible by default, that toolbar would not work. You could not fit in the text and icons without making the toolbar less effective at it's core purpose. So I think the form of SC that could be added (given what else is already there), is something like:
We'd probably need to define icons as something like:
Techniques could include:
Does that meet the need? |
A note to caution against techniques that recommend using the title attribute or SVG |
@LJWatson the popup on title is permissible because of the exception: |
Thanks @awkawk. Tooltips still represent a problem though, so exemptions not withstanding, I don't think we should be recommending the title attribute or SVG title element in this context. |
@MarcHaunschild In these cases, it is unclear what speech input users would be expected to speak. Would they say "Click i", "Click b"? Would the expand to "click italics" or "click bold"? I think the exception stated in the 2.5.3 Understandig text that "text should not be considered a visible label if it is used in a symbolic manner, rather than directly expressing something in human language" is the right way to go. So I am not sure what kind of change you would suggest. |
Hi @LJWatson, no one had mentioned title-based tooltips, and I specifially mentioned 1.4.13 in the example technique. We were using the github style buttons as example, which use a non-title based tooltip that would be fine if it were focusable without a screenreader, and also met 1.4.13. Which is to say not fine at the moment, but conceptually could be, and you'd need some method of adding text without impacting layout. |
@alastc commented:
No-one suggested anyone had mentioned them. Title based tooltips are a common way for people to solve this problem in the wild, particularly with SVG icons; I'm just cautioning against us encouraging that practice. |
@detlevhfischer
with the usual exception "unless it is essential to be without text" for example in a game, where somebody has to guess what a shape is standing for. |
Yes, I like it a lot!
You mean something like this (a real life website with icons and texts next to them): Or a tutorial, best practice example? |
I've drawn up a proposal here |
Just to update: We worked through David's proposal in various ways, and really struggled to get a good enough coverage of common scenarios. For those with access the survey results are here, but the nub of the issues was: It is relatively easy and useful to provide the extra information in a desktop context (with mouseover), but the techniques used to do that don't necessarily work for touch-screens, and sometimes actively make the interface worse. Considering four scenarios:
Applying a mouse-over style tooltip for scenario 1 is straightforward, but then on a touchscreen (3) you can't get the information without activating the control or needing to tap-twice (which is flaky). That is not a desirable approach in general. Overall, we couldn't find a way of making that work as a (potentially legal) requirement across different sites & devices. Some good work went into this, I wonder if the techniques could be used as advisory techniques somewhere? In some contexts they would be good to do, just not all. |
In Germany we earlier had a test, that demanded textual description for icons, but there were a lot of people (a11y specialists) who criticized this test, because it differed from international rules (wcag, of course).
So the test (BITV-Test for those who know it) changed over the years to get closer to what is actually written in wcag. Although this makes sense, I think we lost a few things that were important for people with certain disabilities.
The reason for a textual description for icons is quite easy: I can't think of a single icon, that everybody would understand. Just take the icons here in this editor: a capital "A" and a bigger capital "A" together on one icon can stand for making texts bigger (or smaller), they mean nothing to people, who can't read, who don't know the latin alphabet or don't see at all. For those, that do not see, there is an aria-label - but what about the broad majority that is able to see? I would never have guessed, that it stands for "Add header text".
To make this short: I think there must be a textual description to make icons like these accessible to everybody.
These buttons here on the top of the editor are not accessible for people using a touch screen or a keyboard and there are not accessible for speech input (and don't have to, because SC 2.5.3 "Label in name" don't addresses graphical buttons, although they of course are user interface components. I think this should be changed also).
I think this is a problem for many people, not addressed by the WCAG yet and I suggest adding it in a future version.
The text was updated successfully, but these errors were encountered: