Is there a way to change font color for New-UDselect Label?

Is there a way to change font color for New-UDselect Label?

New-UDSelect -ID ‘myselectid’ -Label ‘want_this_in_black’

Thx …

Hello @Fabian I too had the same question, so to save you any more head scratching its this:-

‘.select-dropdown li span’ = @{
‘color’ = “#339933
}
This sets it green…for more ideas please have a look at my themes page I used in one of my projects at work https://github.com/psDevUK/psUniversalDashboard/blob/master/PagesGitHub/Theme.ps1 I hope this answers your question :smile:

Is there a way to also change the color of the dropdown text before you click on it?

Do you mean the label text for the default value or after you select a value on UDSelect?

Something like this?

Without custom color default/selected value:

With custom color for default/selected value:

You can try something like this (try it without the important flag, so you do not override it. In my case i need to override it because i had defined the color for the dropdown in general before)

Red Color:

'.input-field [class^=select-dropdown]'                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       = @{
    color = '#e3000f !important'
}