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
role="text" should be valid #574
Comments
role="text" is not a valid role in the ARIA spec. |
This might not have been a valid role in 2019 (or in 2021 per MDN...) but is a necessary workaround for VoiceOver bugs that have been wontfixed by Apple. See OP's link; I've had to do this on production in quite a few places. I would be happy to send a PR for this, either as a built-in allowed option (my preference) or an opt-in rule option. LMK! Edit: maybe the opt-in rule option would be a list of additional roles, to future-proof the rule for other, similar situations? |
If it's not matching the spec, then it shouldn't happen by default - but it may be reasonable to add it as an option. |
Throws
error Elements with ARIA roles must use a valid, non-abstract ARIA role jsx-a11y/aria-role
It's a valid role plz see: https://axesslab.com/text-splitting/
The text was updated successfully, but these errors were encountered: