Skip to content

How to style a collapsed Tabs component's Picker? #5325

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

You must be logged in to vote

It's not accessible to have a contextual help or anything else interactive inside a Tab. See https://w3c.github.io/aria/#tab Children presentational: True. I'm not sure how a keyboard user would get to that contextual help either.

I suggest finding a different way to relay the information in the contextual help. You could put one outside the tabs, much like the "add"/"remove" buttons are added here https://react-spectrum.adobe.com/react-spectrum/Tabs.html#customizing-layout

Once you remove it from there, you won't need to worry about it inside the collapsed menu. This is a good thing because in Spectrum, that icon would indicate that the item is unavailable, which is not what it seems you…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mdoliv
Comment options

@snowystinger
Comment options

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