You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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.
The text was updated successfully, but these errors were encountered: