Skip to content
Discussion options

You must be logged in to vote

Sorry for the delay @Joonaspraks, it looks like we missed this issue. I'll do my best to answer the questions here:

You should be able to use the renderProps for isFocused and isFocusVisible, or the data-* attributes in order to determine if you should show the focus ring. We recommend doing this anyways because all the browsers handle :focus and :focus-visible differently. See https://react-spectrum.adobe.com/blog/building-a-button-part-3.html#focus-rings

As for why focus is given on hover, that matches the native behaviour for menus and selects. You can see this by trying the https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/select component. Open it with your mouse, …

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@snowystinger
Comment options

Answer selected by snowystinger
@Sidnioulz
Comment options

@snowystinger
Comment options

@Sidnioulz
Comment options

@snowystinger
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