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

Allow aria-hidden=true on picture element #346

Closed
scottaohara opened this issue Sep 2, 2021 · 1 comment · Fixed by #352
Closed

Allow aria-hidden=true on picture element #346

scottaohara opened this issue Sep 2, 2021 · 1 comment · Fixed by #352

Comments

@scottaohara
Copy link
Member

presently the picture element allows for no roles or aria-* attributes, which generally makes sense because the picture element itself is not an accessible object. That said, there could be a situation where a picture that contains a decorative image needs to be hidden..... and for whatever reason the expected alt="" on the fallback image cannot be used, but aria-hidden=true on the picture element could. Upon testing this just now, seems like this would be a viable option as Chromium browsers, Firefox and Webkit all ignore the child <img> in this situation.

@stevefaulkner
Copy link
Collaborator

WFM

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

Successfully merging a pull request may close this issue.

2 participants