RAC - Why filter out role
and aria-roledescription
on the Tabs element?
#6051
-
I'm using RAC's The only time I found myself puzzled about RAC's choices was in trying to add a few aria properties as recommended in the w3c carousel pattern guide. Relevant excerpt:
So I thought, the div rendered by Easy enough to work around (just rendered my own div and set the props on there) but I was wondering why y'all filter those props out when you aren't trying to set them yourselves? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Tabs implement this pattern https://www.w3.org/WAI/ARIA/apg/patterns/tabs/ https://www.w3.org/WAI/ARIA/apg/patterns/carousel/#roles_states_properties For instance, it suggests for Carousel
vs Tabs
Usually when we prevent certain attributes it's because they have the ability to break the pattern we've implemented. I haven't checked what would happen in this particular case though, as we didn't write Tabs with Carousel in mind. |
Beta Was this translation helpful? Give feedback.
I had a chance to look this over again today
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…