-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Shiny HTML element has no lang attribute #2844
Comments
Making shiny more accessibility friendly would be huge. There is some discussion on it also in issue #2494 regarding alt text. |
What would you suggest - adding 'en' by default and exposing it as a parameter to |
By the way, anyone can add this to their shiny apps by just including anywhere in the UI the line
|
@daattali Nice, thanks for the tip! Just need to make that more prominent in our documentation and included in our examples and templates and that's probably sufficient. |
Yes, that's possible; however, having document-level |
@jooyoungseo Does this do what you need? Passes a WAVE check...
|
System details
Repro Steps
Problem
The HTML element has no
lang
attribute. This is a WCAG 2.1 A violation: https://www.w3.org/TR/WCAG21/#language-of-pageExpected
Pages should be accessible by default. Thus, there should be a reasonable default, and the ability to specify a different language. For English:
<html lang="en">
This is critical for screen readers, otherwise you can have (for example) a Spanish user's screen reader trying to pronounce English words using Spanish language rules.
There was a community question on this:
https://community.rstudio.com/t/how-to-specify-the-language-to-a-shiny-app/26472
The text was updated successfully, but these errors were encountered: