Skip to content

Add another example for role=region to identify carousel region #4500

@spanchang

Description

@spanchang

Refer to: https://www.w3.org/WAI/WCAG22/Techniques/aria/ARIA20
I am aware there three examples listed but believe adding another (perhaps as the first one) will inculcate a practice for identifying a region clearly labelled as "carousel".
The ARIA Authoring Practices Guide suggests use of aria-roledescription, however a role=region clearly named as a carousel by following ARIA20 is more robust facilitating navigation and discoverability of the carousel.
Screen reader users rely on circumstantial elements in the carousel region to figure out that their focus is inside one, e.g. Next / Previous slide buttons or Pause slideshow button or such.
Often there is a heading for the slide as a banner and it keeps changing and that is another clue.
I do see the statement in the description for ARIA20, "The generic region should be used when the section cannot be marked up using a standard document landmark role (see ARIA11)", yet believe this example is a strong one.
Suggested example:
The home page of a website has two carousels: one under Announcements (an h2 heading) and one under Publications (also an h2 heading).
Both carousels have next / previous buttons and a button that can be pressed to pause/start slideshow.
The div regions that contain each carousel are marked up with role=region and named using aria-label as follows:

... Carousel content
and
... Carousel content
Note: Identifying a carousel region with this technique even when there is only one carousel on the page is also very helpful for users.

Thanks!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions