Hi there - big fan of this component. However, it glitches a little bit visually in my custom MUI theme, see below:
The reason for this is my custom theme, I have forced default values for Button's variant and disableElevation props to be different from the MUI defaults, namely:
But the ColorButton component in this package assumes the default props for Button are the same as MUI's. Therefore to fix this I have added in the props to force it to always have variant="text" and disableElevation={false}, so it is always the same as the MUI default props even if a custom theme has been applied.
Hi there - big fan of this component. However, it glitches a little bit visually in my custom MUI theme, see below:
The reason for this is my custom theme, I have forced default values for Button's
variant
anddisableElevation
props to be different from the MUI defaults, namely:But the ColorButton component in this package assumes the default props for
Button
are the same as MUI's. Therefore to fix this I have added in the props to force it to always havevariant="text"
anddisableElevation={false}
, so it is always the same as the MUI default props even if a custom theme has been applied.