[Feat]: Better accessibility in documented examples #1020
Replies: 3 comments 6 replies
-
Hi @DiveServiceAS and thanks for your feature request, This is already on the roadmap: But the problems I have is that one, I'm flooded with questions all the time and I'm only one person working for free on my very limited spare time, two, this project lacks decent sponsorships/funding so I could free up time for requests like this. In theory this is a great request and I would like to implement it, in reality, I can't tell when or if it will happen. Best, |
Beta Was this translation helpful? Give feedback.
-
@DiveServiceAS the tab key will navigate the carousel if slides contain focusable elements, just like the native browser does. Check this sandbox out and this comment out. Other than that, Embla doesn't attach any key listeners so you're free to use the API to do that. If you're having trouble, try to be specific and maybe I can help out. Embla is a DIY library but very extensible so it should expose all the things you need to create an accessible carousel based on A Step-By-Step Guide To Building Accessible Carousels. Or, if we were to keep this discussion open, I could ask you directly how to achieve specific functionality and add it to the examples I'm writing? Please do. I'll answer as soon as I get the chance. |
Beta Was this translation helpful? Give feedback.
-
@davidjerleke Great! I will start working on some examples then. My first question for you relates to a step of the guide titled Semantic markup of the active control. In order to do this, I must programmatically retrieve the index of the current displayed slide from the API, so that I can mark the correct dot-button element with |
Beta Was this translation helpful? Give feedback.
-
Which variants of Embla Carousel are relevant to this feature request?
Feature description
The current docs are all focused on attaining functionality, but there has been no examples on how to achieve accessibility with this tool. For example, I wish to see how I can return information about which slide is currently being shown so I can give that information to the screen readers.
For a comprehensive list about how to make carousels more accessible and screen reader friendly, see A Step-By-Step Guide To Building Accessible Carousels
Additional Context
No response
Before submitting
Beta Was this translation helpful? Give feedback.
All reactions