Skip to content

[Select] How to work the aria-select #1737

Answered by benoitgrelard
JeanLiima asked this question in Help
Discussion options

You must be logged in to vote

aria-selected will be true only for the selected item when focused. This is to deal with some issues with VoiceOver.

// `isFocused` caveat fixes stuttering in VoiceOver
aria-selected={isSelected && isFocused}

What are you trying to test exactly? It sounds like your tests are way too low-level.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@JeanLiima
Comment options

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