Skip to content
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

Add question: "Do visual text and screen reader text must absolutely match?" #47

Open
MaximPerry opened this issue Jul 12, 2022 · 1 comment

Comments

@MaximPerry
Copy link
Collaborator

Suggested answer:
No, as long as they both provide the same general information to users. It becomes an issue when a screen reader text is providing aditional information not being visually communicated, or vice-versa.

Example of a failure: an aria-label that reads: "Password - must contain at least 8 characters" on a label that just visually reads "Password" (where those additional instructions aren't visually displayed elsewhere either).

@Jefferydo
Copy link

rephrased question: ""Do visual text and screen reader text have to match?""

"No, as long as they both provide the same general information to users."

I'm pretty sure visible text has to be faithfully communicated to the screen reader user and voice input user.

  • Images of text must have alt text that matches. Exception: extraneous or redundant text in the image.
  • Labels of controls must have an ARIA label that matches or contains the visible text label (SC 2.5.3: Label in Name).
  • As for the rest, hiding text nodes from screen reader users with aria-hidden is allowed only for extraneous or redundant text, though the spec goes on to say if you do it anyway, you must provide identical or equivalent meaning:

Authors MAY, with caution, use aria-hidden to hide visibly rendered content from assistive technologies only if the act of hiding this content is intended to improve the experience for users of assistive technologies by removing redundant or extraneous content. Authors using aria-hidden to hide visible content from screen readers MUST ensure that identical or equivalent meaning and functionality is exposed to assistive technologies.

Suggested answer:
Yes, unless the text is extraneous or redundant.

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

No branches or pull requests

2 participants