Hover/Focus styling on Option #4672
Unanswered
theocerutti
asked this question in
Q&A
Replies: 2 comments
-
I found a workaround, but it stills display a focusedOption on menuOpen (while it should displays focusedOption only if I hit keyboard arrow) I disabled the focus onHover on options with:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Greetings @theocerutti , This seems more in line with the spirit of discussions, so I hope you don't mind me moving this there. Removing onMouseMove/Over may also add some performance so that would likely be the preferred route. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I would like to style my select when i'm focusing option with my keyboard -> the prefix --is-focused works fine here.
The problem is the --is-focused is also applied to the hovered option.
I think it would be better to remove this behavior.
So that we can style both hovered/focused option differently.
With that fix we should use --is-focused only for keyboard navigation, and &:hover for hovered option (maybe create a new hover prefix class ?)
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions