react-slick icon indicating copy to clipboard operation
react-slick copied to clipboard

Accesibility

Open juan-bastidas opened this issue 4 years ago • 3 comments

Running AXE validation returns one a11y error introduced by react-slick:

ARIA hidden element must not contain focusable elements

Basically stop adding aria-hidden to each slide, tabindex=-1 will be the way for non visible slides.

juan-bastidas avatar Feb 05 '21 19:02 juan-bastidas

tabindex=-1 is not enough. The slides are still visible for assistive technologies, and focusable elements (such as links) inside the slide are still navigateable by tab key or other means. What, in my opinion, should be done instead is to set visibility: hidden on slides the moment they are settled outside of the visible area. The somewhat tricky part is that they should be made visible again as soon as sliding begins.

tigrr avatar Oct 07 '21 13:10 tigrr

Why not use the Inert attribute? You can use the polyfill from wicg github

garyb1 avatar Nov 08 '22 12:11 garyb1

Has anyone found a good work around for this? Having links inside slides creates accessibility check failures. Screenshot 2023-09-11 at 4 15 09 PM

dushakov92 avatar Sep 11 '23 21:09 dushakov92