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

Accessibility issue with line numbers plugin #574

Closed
LeaVerou opened this issue Apr 30, 2015 · 2 comments
Closed

Accessibility issue with line numbers plugin #574

LeaVerou opened this issue Apr 30, 2015 · 2 comments

Comments

@LeaVerou
Copy link
Member

Currently, all numbers are read in the beginning, which makes Prism + line-numbers horrible for accessibility.

As a quick fix, we should add an ARIA attribute to not speak the line numbers element (I’m forgetting which attribute is used for this). In the future, we could examine how to have the line numbers properly announced in the beginning of each line without having to create as many DOM elements as loc, which would be inefficient for everyone.

@calvinjuarez
Copy link

There's aria-hidden, which has this note/caveat:

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.

@LeaVerou
Copy link
Member Author

LeaVerou commented May 5, 2015

Ah yeah, aria-hidden!

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

No branches or pull requests

2 participants