Open Abbiscuit opened 3 years ago
Im looking for the answer of this as well. However, per this discussion https://github.com/casesandberg/react-color/issues/530, I don't think there is a solution yet. But you can try to override the css value for box-shadow.
@iamBoWu Thank you for your reply! I don't think this is the most elegant way but for now I override the css value like this... (Also I added "transparent" as default colors, too
)
border
.twitter-picker span div {
border: 1px solid black;
}
OR
box-shadow
.twitter-picker span div {
box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.2);
}
<TwitterPicker
styles={{
default: {
card: {
background: theme.palette.background.paper
}
}
}}
</TwitterPicker>
I'm using TwitterPicker now. I added white color to colors array. Since this white color does not have any border color or box-shadow, users might not notice there's white color.
How do I add styling to it??