Carousel

Carousel is designed to display either single or multiple slides at a time, allowing users to increment or decrement through the sequence.

Note: This tab list includes overflow; tab positions may be inaccurate or change when a tab is selected
  • Avoid using infographics, maps, charts as images or images of text.
  • Order slides by importance, with the most critical info first.
  • Tablist components provide keyboard navigation, making them less suitable for mobile devices where space is limited and users often prefer gesture-based slide navigation.
  • If slides contain focusable elements, then add carousel controls to the top, so they receive focus first.
  • If slides do not contain focusable elements, then carousel controls can be placed at the top or bottom.

If using Autoplay, then additional considerations are required

  • include accessible controls to start and stop the autoplay feature, allowing users to manage the animation according to their preferences.
  • consider requiring user consent to enable autoplay, especially for users who may find automatic movement disorienting.
    • stop the autoplay if the user hovers over the carousel.
    • stop the autoplay if the user drags a slide.
    • stop the autoplay when content within a carousel slide receives focus, ensuring users can interact with the content without distraction.
  • ensure screen readers announce changes in slide content during autoplay, providing context for visually impaired users.
KeyFunction
Tab
  • If focus is outside the carousel, moves focus into the carousel, setting focus on the previous button.
  • If focus is on the previous button, moves focus to the next button.
  • Assuming the carousel controls are at the top, when the focus is on the next button, shift the focus to the tablist (if available). If the tablist is not present, direct the focus to the next focusable element within the current slide or the sequence of the page.
  • Assuming the carousel controls are at the bottom, when the focus is on the next button, shift the focus to the tablist (if available). If the tablist is not present, direct the focus to the next focusable element in the sequence of the page.
Enter
  • If focus is on the next button, it moves to the next slide and keeps focus on the button, allowing for continuous navigation.
  • If focus is on the previous button, it moves to the previous slide and keeps focus on the button, facilitating backward navigation.
Shift + Tab
  • If focus is on the next button, moves focus to the previous button, enabling backward navigation through controls.
  • If focus is within a visible slide, moves focus to the tablist (if available) or next button, ensuring logical navigation order.
  • If focus is on the element after the carousel, sets focus on the last interactive element on the visible slide, allowing for backward navigation through slide content.
Right arrow
  • If focus is in a tablist and there are more slides to the right, moves the focus to the next slide.
Left arrow
  • If focus is in a tablist and there are more slides to the right, moves the focus to the next slide, facilitating forward navigation through slides.
Home
  • If focus is in a tablist and there are more slides to the left, moves the focus to the previous slide, enabling backward navigation through slides.
End
  • If focus is in a tablist, move to the last slide, allowing quick access to the end of the carousel.