twbs / bootstrap

The most popular HTML, CSS, and JavaScript framework for developing responsive, mobile first projects on the web.
https://getbootstrap.com
MIT License
170.81k stars 78.86k forks source link

Carousel accessibility improvements #31908

Open ffoodd opened 4 years ago

ffoodd commented 4 years ago

Carousels might be improved, or at least it worths the try:

Required

Nice to have

Docs:

Relates to #22549

patrickhlauke commented 4 years ago

note that autoplaying carousels already pause/stop on hover (and, to an extent, when tapped on a touchscreen, though i seem to remember there they restart again after a long period of inactivity)

hide transitioning elements from ATs

non-visible slides are display:none, so hidden. do you mean hiding them in the few microseconds where they're transitioning?

i'd also add better/more visible focus indication on prev/next (ideally just for keyboard users - that'd require something like whatinput, which we decided against ages ago - or using the :focus-visible stuff at least for future compatibility, and/or with polyfill)

patrickhlauke commented 4 years ago

xref https://github.com/twbs/bootstrap/issues/29494 https://github.com/twbs/bootstrap/issues/22549

patrickhlauke commented 3 years ago

see also https://github.com/twbs/bootstrap/pull/32661