I'm trying to change the color of the text when I type in the dcc.dropdown in my dash application. The color of the elements of the dropdown is fine but the text input looks like is on the default one.
Any help?
Thank you.
I'm trying to change the color of the text when I type in the dcc.dropdown in my dash application. The color of the elements of the dropdown is fine but the text input looks like is on the default one.
Any help?
Thank you.
Something like this should do the trick. Just need to specify the color option in the style argument. Can choose whatever color you like - here's a list of CSS colors you can choose: https://www.w3schools.com/cssref/css_colors.asp
dcc.Dropdown(id='dd',
style={'color': 'black'},
options=[{'label':i,'value':i} for i in choices],
value=choices[0]
)
I know this was asked a while ago but I came across the same issue and couldn't find an answer anywhere. You can resolve this issue in the CSS:
.Select input{
color:white;
}