Editable dropdown - how to change color?

UI Components for Angular
Post Reply
pngUser
Posts: 25
Joined: 29 Apr 2017, 13:26

06 Sep 2017, 12:16

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.

paynkyller29
Posts: 1
Joined: 27 Jun 2022, 17:43

27 Jun 2022, 17:47

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.

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 34 guests