-
Notifications
You must be signed in to change notification settings - Fork 34.5k
Fix custom select box hover styles #129970
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix custom select box hover styles #129970
Conversation
Thanks for the PR! |
Thanks! I am still a little confused about the styling of this component. I never see |
To fix this, an option should not automatically focus on hover, but only on selection via keyboard (to be consistent with the other UI elements). However, that is a bigger change, and may have implications which I do not fully understand. Alternatively, I could let the hover style win over the focused style (by removing the EDIT: After playing around with the select box, I did fine one scenario where the hover styles do apply: Try hovering over an option, and then switching the focus to another option using the keyboard arrows. The hovered element should now show the hover styles. |
Yeah, maybe we did that to make it look a little more like a typical dropdown which I guess wouldn't have two highlight colors.
I see that, thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
This PR fixes #130038.
Summary of changes on custom select boxes:
background-color
(notcolor
) was set to thelistActiveSelectionForeground
(an active FG is probably a mistake too)background-color
(again) would be set toselectBackground
(which might not match theselectListBackground
)Some other notes:
1.6px
, everything else seems to use1px
, not sure if this is intentional