You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To ensure accessibility of the carousel, follow these steps:
Place the slider within a container element with the role="region" and the attribute aria-roledescription="carousel". Include either an aria-labelledby attribute that references the ID of the heading element labeling the carousel, or use an aria-label attribute to provide a descriptive label for the carousel.
Wrap each individual slide within a list item element with the attribute role="group" and aria-roledescription="slide" to indicate the role of each slide.
Additionally, set the aria-label attribute to display the slide number in the format "# of #", indicating the current slide number and the total number of slides.
Structure the slider dots inside of the region list markup and add aria-controls to each button referencing and ID on the slide they control.
For a carousel with a multiple slides:
To ensure accessibility of the carousel, follow these steps:
Wrap the slider within an element that has the attribute aria-roledescription="carousel". Additionally, include either an aria-labelledby attribute that references the ID of the heading element used to label the carousel or an aria-label attribute that provides a descriptive label for the carousel.
Within the carousel element, include a child element with the attribute role="list" to indicate the list structure of the carousel.
Wrap each individual slide within an list item element and make sure they have the necessary attributes. Set the aria-label attribute to display the slide number in the format "# of #", indicating the current slide number and the total number of slides. Additionally, use the attribute aria-roledescription="slide" to describe the role of each slide.
Structure the slider dots inside of the region list markup and add aria-controls to each button referencing and ID on the slide they control.
For a carousel with a single slide:
To ensure accessibility of the carousel, follow these steps:
For a carousel with a multiple slides:
To ensure accessibility of the carousel, follow these steps:
To discuss further: [email protected] - Crystal Scott, CPWA
The text was updated successfully, but these errors were encountered: