The W3C Web Accessibility tutorial recommends focusing on the currently displayed carousel item or slide when the user selects a slide with the navigation buttons.
I think it would be great if the library can:
provide an additional parameter to the onChange so that we can tell whether the slide change is caused by a user interaction
and/or
automatically focus the carousel item when the user clicks or uses the keyboard to select one of the indicators or the Prev/Next buttons.
This would make the carousel more accessible to screen reader users or users who mainly use a keyboard to navigate around.
Thanks! Appreciate your work on this library by the way 🙂
Interesting idea.
Are you thinking of a simple boolean value, explaining if the change happened because of user interaction? Or are you thinking of a complex event parameter?
Hi there,
I am trying to make my carousel more accessible by following the WCAG guidelines and following this tutorial from W3C.
The W3C Web Accessibility tutorial recommends focusing on the currently displayed carousel item or slide when the user selects a slide with the navigation buttons.
I think it would be great if the library can:
onChange
so that we can tell whether the slide change is caused by a user interaction and/orThis would make the carousel more accessible to screen reader users or users who mainly use a keyboard to navigate around.
Thanks! Appreciate your work on this library by the way 🙂