You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got this error in the console log after open then close a image gallery with thumbnails
Warning
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:
I noticed the error only show when I select or move the the slides that were not visible from the beginning. For example, this demo has 3 images visible on page load and the rest are hidden.
Viewing the hidden images will throw the accessibility error.
Describe the bug
I got this error in the console log after open then close a image gallery with thumbnails
Warning
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:
I noticed the error only show when I select or move the the slides that were not visible from the beginning. For example, this demo has 3 images visible on page load and the rest are hidden.
Viewing the hidden images will throw the accessibility error.

Reproduction
This issue can be seen right on the docs page here https://fancyapps.com/fancybox/plugins/thumbs/
Additional context
No response
The text was updated successfully, but these errors were encountered: