How to style EnumField dropdown items?

I want to style dropdown lists for my enumfields, I managed to find a way to style everything with the use of stylesheats, except for the background color on *dropdown__item:hover.

2024-12-31 22-26-01

When I look into the debugger it says that the blue backgroud color is from a stylesheat, but I have a different one set up. It looks like there’s some default style that I fail to override.

This is the stylesheat for :hover state.

Does anybody know how to set the background color for this?
Thanks in advance

Hi @IsaKobe,

If I recall, to override the background color of the dropdown item when it’s being hovered, you need to use this selector:
.unity-base-dropdown__item:hover:enabled

Hope this helps!

2 Likes