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

Blocked aria-hidden on covers from the home page #2718

Closed
gautierchomel opened this issue Dec 13, 2024 · 0 comments · Fixed by #2705
Closed

Blocked aria-hidden on covers from the home page #2718

gautierchomel opened this issue Dec 13, 2024 · 0 comments · Fixed by #2705

Comments

@gautierchomel
Copy link
Member

gautierchomel commented Dec 13, 2024

image

From AXE A11Y checker

index_library.html#/home:1 Blocked aria-hidden on an element because its descendant retained focus. The focus must not be hidden from assistive technology users. Avoid using aria-hidden on a focused element or its ancestor. Consider using the inert attribute instead, which will also prevent focus. For more details, see the aria-hidden section of the WAI-ARIA specification at https://w3c.github.io/aria/#aria-hidden.
Element with focus: img
Ancestor with aria-hidden: <img tabindex=​"-1" class=​"cover_img" role=​"presentation" alt aria-hidden=​"true" src=​"store:​/​/​39b7940f-df1a-4e64-a8a9-99d872c2985f/​cover.png">​flex

redundant on each cover image

I guess deleting aria-hidden=​"true" should be a sufficient fix because role=​"presentation" already does the job

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.

1 participant