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
Exception for use of symbols as visible label in regard to 2.5.3 Label in Name #598
Comments
"Symbolic text characters" in 1.4.5 Images of Text also addresses questions about use of text characters as symbols and the notion of the characters not forming a sequence that expresses something in human language:
|
Interesting -- I think it's saying that these aren't text for the purposes of SC 1.4.5. But admitted these examples in the understanding are not clear which in the bullet list is a example pass and what is an example fail. I tend to recall that when this discussion came up with other symbols before they weren't considered text and so greater than would not be text either and thus not subject to 2.5.3. This makes some sense because it's not the name we want but the meaning. For example a triangle for a play button -- we don't want the acc name to be triangle -- but instead play. we don't want to pipes to be "pipes" but instead "pause". |
Indeed, I would not have considered those examples as 'text' (as defined in WCAG), so perhaps adding a similar disclaimer to 2.5.3 from 1.4.5 is in order. I believe you're updating this at the moment @mbgower? There is a gap, I.e. what should the accname of those symbols be so that people can predict it, but that's best dealt with at a (localised) best-practice level rather than guidelines. |
The discussion in #592 is relevant to this topic as well. @alastc there makes the point that the definition of "text" hinges on the characters "expressing something in human language"
Since 2.5.3 states
the argument is that the text must have meaning (i.e., be words), and where text is used symbolically or as a crude replacement for a visual cue, such as ">" intended to mimic the visual appearance of a conventional play button arrow, it is not in fact "expressing something in human language" |
@mraccess77 can you please correct this in your comment
I believe you mean SC 1.4.5. |
I don't think I'd technically describe that as a gap. If we are saying that ">" is not text, then a control labelled by it does not in fact have a visible text label for the purposes of 2.5.3, and so can have any appropriate string for its accessible name. I'm going to suggest as a piece of guidance that what the symbolic text represents -- which is normally its function -- should be its name. So for the various examples in this issue:
|
Okay, here's a similar question. What about mathematical symbols? I think I'd argue that when used as part of a mathematical expression, punctuation has 'human language' expression and the name should match the label. |
Similarly there was a question about whether the name for a label of "5-3" could be "five minus three". I think my comment would be 'why not make it the same string and save yourself the headache?' Converting the label to a name perceived by an author as being more useful seems risky. Some may agree with it; others may not. I do know an non-visible English name may potentially cause issues with Internationalization, where using the visible mathematical expression would not. |
I didn't mean a gap for 2.5.3, but an overall gap in accessibility for people using voice input, i.e. how do they know what the accname of a symbol is? So it's a gap in that there is nothing covering symbol usage in controls for voice input. (One that would ideally be filled by voice input have a feature to overlay the names of controls via a simple command.)
I agree with that, and would hope that voice input would deal with it, there are certainly commands for punctuation and symbols. |
This was addressed in updates to the Understanding Label in Name document, which was updated via #614 |
Another consideration for what exactly should be considered relevant when figuring out success for meeting 2.5.3 is the use of symbols on buttons and icons.
An example would be buttons in a rich text editor. In github, these buttons include "AA", "B", "i", an open double quote and a set of coding brackets ("<>").
Although I question the wisdom of some of the accessible names for these buttons assigned through aria-label such as "Add bold text, <ctrl+b>", I think it is nonsensical that "AA" should be required as the accessible name.
Another example would be where someone has used a ? or ! symbol as a button label. I think it is defensible that "More information" and "Caution" are not only more meaningful alternatives but should not result in a failure of 2.5.3. (This is leaving aside the question of whether the use of the symbol alone as a label is a good design decision.)
I am going to propose that the use of symbols or character keys employed as symbols should be excluded from consideration as part of the visible text label for the purposes of meeting 2.5.3.
The text was updated successfully, but these errors were encountered: