2

I am trying to change the background color of a select drop down when disabled.

I was testing with: .ant-select-disabled .ant-select-selection{background-color: red} with no luck. For example, on regular inputs I got it to work: .ant-input:disabled{background-color: red}

This is for VueJS

dataviews
  • 2,466
  • 7
  • 31
  • 64

3 Answers3

0

Hi you can use styles in the Select drop down

<Select
   style={
     backgroundColor: "red",
   }
>
        .....
              
</Select>
0

you can use this; this works for me.

.ant-select-selection-item{
   background-color: red;
}
vimuth
  • 5,064
  • 33
  • 79
  • 116
Ratan
  • 1
0

You can use dropdownStyle prop on Select to style it.