Style Empty Caption of DropDown

0
Hi Team, Is there a way I can change color, style the empty caption text of Dropdown widget?  I can set a class for dropdown Div itself but the underlying <Select> tag class can be extended or changed?    Basically I want to extend this class and change styling for only one particular dropdown.  Thanks, Sharad R K
asked
1 answers
2

You should be able to write a css selector for the select element within the div with a certain class. So, say you give the dropdown div the class “.dropdown-empty-message” or something, you should be able to use something like:

.dropdown-empty-message {
  select.form-control {
    option{
       &:first-child{
          <your styling here>
        }
    }
  }
}

This specifically targets the first (empty) option of your drop-down.

answered