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

Attribute aria-hidden of div should not be put in div #4314

Open
mahui-cn opened this issue Dec 11, 2024 · 1 comment
Open

Attribute aria-hidden of div should not be put in div #4314

mahui-cn opened this issue Dec 11, 2024 · 1 comment

Comments

@mahui-cn
Copy link

short description of the bug / issue, provide more detail below.

Chrome tell the errors as below:
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: div
Ancestor with aria-hidden: <div class=​"text-center mx-2 slick-slide" data-slick-index=​"5" aria-hidden=​"true" tabindex=​"-1">​…​​

It looks like the attribute aria-hidden of div should not be put here as the element div sometimes could be focused by user via mouse or keyboard which violate the latest rules of w3c specifications.

@mtibbits140
Copy link

I am also suddenly having an issue with this on a site where nothing has been changed. Any ideas on how to fix would be greatly appreciated!

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

No branches or pull requests

2 participants