viclafouch / mui-color-input

📌 A color input designed for MUI (Material ui) V6 built with TinyColor
https://viclafouch.github.io/mui-color-input/
60 stars 20 forks source link

Remove shadow on color's button #2

Closed vbo75 closed 1 year ago

vbo75 commented 1 year ago

Hi, Is it possible to remove shadow behind color's button ?

viclafouch commented 1 year ago

Hello !

You can do it by using the given classNames : https://viclafouch.github.io/mui-color-input/docs/css/

vbo75 commented 1 year ago

Thanks 👍

Here's sample tested

const CustomColorInput = styled(MuiColorInput)({
   "& .MuiColorInput-Button": {
       boxShadow: 'none',
   },
});