WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Carousels again

for

From: glen walker
Date: Jul 15, 2020 12:10PM


role="region" is usually the last choice for a landmark because it's so
generic. It's kind of the <div> of landmarks. role="complementary" has
more semantic meaning so is preferable but technically you could use
either.

Note that role="region" is often ignored as a landmark unless it also has
an aria-label.

You can see more about the complementary landmark at
https://www.w3.org/TR/wai-aria/#complementary

Barry, in your original posting, you said next/prev would be disabled if at
the end/beginning of the carousel. While it's common to disable those when
at the end of a list, most carousels wrap around to the beginning/end if
you try to next/prev at the end, thus eliminating the need to disable them.


On Wed, Jul 15, 2020 at 8:19 AM Mohith BP < <EMAIL REMOVED> > wrote:

> Hi Birkir,
>
> Please help me to understand is there any specific reason to use
> role="complementary"?
> If the carousel is in the main section can role="region" be used
> instead of role="complementary"?
>
> Just curious to know if there are any specific reasons.
>
> Thanks & Regards,
> Mohith B. P.
>
>