-
-
Notifications
You must be signed in to change notification settings - Fork 17
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: Make aria-hidden for the canvas a patch setting. #929
Comments
should this op also have a role parameter ? what about aria-label ? |
These were the accessibility properties I needed to make UIs so far on HTML, that I put on the HTMLElementExtended op.
Note the HTMLElementExtended op allows you to set any tag as well so you can make instead of |
Note also with the ElementAccessibility op as it is currently: only <img> elements support the alt attribute. Better I think to just add alt as a property to the ImageElement op. aria-label and aria-labelledby attributes are the way to provide alt text for most element types. (But not all... See the MDN article for details) |
btw. there is now a elementSetAttribute operator, which can be used to set all those aria attributes |
hey, pull request highly appreciated :) |
Request is to have a checkbox in patch settings that allows you to mark your <canvas> with the aria-hidden attribute.
Usecase is when your canvas is entirely decorative (e.g background of a website that does not contribute to content) and should not be announced by assistive technology.
More info on aria-hidden
The text was updated successfully, but these errors were encountered: