Fix custom select box hover styles#129970
Fix custom select box hover styles#129970roblourens merged 2 commits intomicrosoft:mainfrom lezgomatt:fix-custom-select-box-hover-styles
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 |
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