Skip to content

Use of aria-selected in CSS #3673

Discussion options

You must be logged in to vote

Yes, it's safe to use for tabs. It's not mentioned in the styling docs because this attribute is not safe to use as a CSS selector in any other composite item, and that could cause confusion.

In the future, we may introduce a specific data-selected attribute that will be consistent across all composite items, but aria-selected will still work on tabs.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by harry-gocity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants