Accessible360 / accessible-slick

the last (accessible) carousel you'll ever need.
https://accessible360.github.io/accessible-slick
MIT License
254 stars 45 forks source link

Would it make sense for each item to be an li inside a ul container for better accessibility ? #56

Open gaurav5430 opened 2 years ago

gaurav5430 commented 2 years ago

In general, the carousel / slider shows a homogeneous list of items, would it not make sense to mark them as such in the HTML markup?

This would help screenreader users with things like skipping to the last list item or the first list item

ArnaudDelafosse commented 2 years ago

Hi, when you only have 1 visible item at a time, SR/braille users will hear/read "List of 1 item" which is not of great value. So using a liste for carousel items is only useful when several items are visible at a time.

I don't think that "skipping to the last list item or the first list item" would be possible by default anyway as the navigation within the items is only possible via the (JS operated) carousel's own navigation system and visually hidden items are not exposed to ATs.