glide
glide copied to clipboard
Add a11y attr option for hidden/visible slides
This will enable a default option that will set a visible class to all elements in the current view and set aria-hidden on slides that are not in view. This will also apply a negative tab index for all focusable elements for slides that are not currently in view.
The main purpose of this is to prevent screen reader users and keyboard users from focusing content that is off-screen and be able to dynamically apply classes to elements that are in view given the option perView.
Is there something stopping this from being merged? It seems like a great addition.