I would like to change color of placeholder text of an editable dropdown, how can i do that?
I already tried:
.ui-dropdown-label{
color: white !important;
}
but it didn't helped. any ideas?
Thanks in advance.
Editable dropdown - how to change color?
-
- Posts: 1
- Joined: 27 Jun 2022, 17:43
Hi there,
I know this is very old but maybe will have this issue as well and I did find out after I read your question that you have to actually set the color for the "span" of the element not for the element itself. In simple words your code should look like this:
.ui-dropdown-label span{
color: white;
}
As you can see I'm targeting the span of the element for the color and I removed the !important cause it's not required and it may cause problems in other place of the code.
I know this is very old but maybe will have this issue as well and I did find out after I read your question that you have to actually set the color for the "span" of the element not for the element itself. In simple words your code should look like this:
.ui-dropdown-label span{
color: white;
}
As you can see I'm targeting the span of the element for the color and I removed the !important cause it's not required and it may cause problems in other place of the code.