Daq Color-picker style border-radius


Trying to reproduce the Color picker example: dash_daq.ColorPicker | Dash for Python Documentation | Plotly

In my case, the appearance is different and I detected the error maybe related to the border-radius css style attribute.

I include an image reproducing the error. I would like the color picker to look like the second option (not a round border and transparent color) as is showed in the Dash example (before referenced).

I could achieve the desired appearance from the web browser. However I haven’t been able to modify the style of the Color Picker component in the code :

html.Div([daq.ColorPicker(id='my-color-picker',label='Recolor all plots',value=dict(hex='#7c80f5'),style={'border-radius':'0%! important'})]),

I have been able to get the desired result in the css stylesheet. But the class .cQJXpB changes?


Thank you in advance,

I found the solution adding a change in the css style.
#my-color-picker =id element

#my-color-picker .daq-colorpicker–light__chromepicker {
border-radius: 0% !important;


1 Like