sl-carousel, sl-carousel-item: accessibility updates #2303
doctor-spaceman
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! I'd like to suggest the following accessibility changes for the carousel component.
When pagination is enabled:
role="tabpanel"
to eachsl-carousel-item
.id
to eachsl-carousel-item
that can be referenced by thearia-controls
attribute on each tab.aria-controls
from the pagination part, adding it to each tab element instead, and populating it with the correspondingid
of eachtabpanel
.id
to each tab.aria-labelledby
to eachsl-carousel-item
and populate it with theid
of the corresponding tab.I'm willing to try creating a PR for this.
References:
Beta Was this translation helpful? Give feedback.
All reactions