Skip to content

RAC - Why filter out role and aria-roledescription on the Tabs element? #6051

Answered by snowystinger
JNaftali asked this question in Q&A
Discussion options

You must be logged in to vote

I had a chance to look this over again today

A carousel container element that encompasses all components of the carousel, including both carousel controls and slides, has either role region or role group. [...]
The carousel container has the aria-roledescription property set to carousel.

Our stance on this would be what you are already doing, to use a wrapping div which is the region/group. Tabs was built to be tabs, not a carousel, even if a carousel can be implemented using tabs.

This particular instance seems fairly innocuous, and maybe we could consider allowing some other dom props through, however, if the tabs pattern is ever updated and that element is used, it'd be harder for u…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@JNaftali
Comment options

@snowystinger
Comment options

@snowystinger
Comment options

Answer selected by JNaftali
@JNaftali
Comment options

@mryechkin
Comment options

@mryechkin
Comment options

@JNaftali
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants