diff --git a/aria-practices.html b/aria-practices.html index f467d476ba..61882e219a 100644 --- a/aria-practices.html +++ b/aria-practices.html @@ -486,23 +486,28 @@

Carousel (Image or Slide Rotator)

issue 43.

- A carousel presents a set of items, referred to as slides, by rotating, i.e., horizontally scrolling, a subset of the slides into view at a time. - Typically, one slide is made visible at a time, and rotation automatically starts when the page loads. - In some implementations, rotation automatically stops once all the slides have been displayed. + A carousel presents a set of items, referred to as slides, by rotating one or more of the slides into view. + Typically, only one slide is displayed at a time. While a slide may contain any type of content, image carousels where each slide contains nothing more than a single image are common. + In some implementations, rotation automatically starts when the page loads, and it may also automatically stop once all the slides have been displayed.

- Ensuring all users, especially screen reader users, can control slide rotation is an essential accessibility feature of carousels. - If content is hidden and replaced while a screen reader user is reading it, the experience can be confusing and disorienting, especially if the user is not aware of the automatic slide rotation. + Ensuring all users can easily control and are not adversely effected by slide rotation is an essential aspect of making carousels accessible. + For instance, the screen reader experience can be confusing and disorienting if slides that are not visible on screen are incorrectly hidden, e.g., displayed off-screen. + Similarly, if slides rotate automatically and a screen reader user is not aware of the rotation, the user may read an element on slide one, execute the screen reader command for next element, and, instead of hearing the next element on slide one, hear an element from slide 2 without any knowledge that the element just announced is from an entirely new context.

Features needed to provide sufficient rotation control include:

-
    -
  1. Rotation stops when keyboard focus enters the carousel. It does not restart unless the user explicitly requests it to do so.
  2. -
  3. Rotation is stopped whenever the mouse is hovering over the carousel.
  4. -
  5. A button for stopping and restarting rotation. This is particularly important for supporting assistive technologies operating in a mode that does not move either keyboard focus or the mouse.
  6. +
+
  • Optionally, a control, or group of controls, for choosing a specific slide to display. For example, slide picker controls can be marked up as tabs in a tablist with the slide represented by a tabpanel element.
  • +
  • If the carousel can automatically rotate, it also: + +
  • +

    Example

    @@ -516,6 +521,8 @@

    Example

    Terms

    The following terms are used to describe components of a carousel.

    +
    Slide
    +
    A single content container within a set of content containers that hold the content to be presented by the carousel.
    Rotation Control
    An interactive element that stops and starts automatic slide rotation.
    Next Slide Control
    @@ -531,11 +538,14 @@

    Terms

    Keyboard Interaction

    @@ -593,6 +603,14 @@
    Basic carousel elements
  • Note that since the aria-roledescription is set to "slide", the label does not contain the word "slide".
  • +
  • + Optionally, an element wrapping the set of slide elements has aria-atomic set to false + and aria-live set to: + +
  • Tabbed Carousel Elements

    The structure of a tabbed carousel is the same as a basic carousel except that: