update theme to exclude styling from loading button
This commit is contained in:
1 parent
2c6b1d07f4
commit
bf9199a2b7
1 file changed
+8
-1
@@ -81,7 +81,13 @@ const baseTheme = (palette) => ({
|
||||
},
|
||||
},
|
||||
{
|
||||
props: (props) => props.variant === "contained" && props.disabled,
|
||||
props: (props) => {
|
||||
return (
|
||||
props.variant === "contained" &&
|
||||
props.disabled &&
|
||||
props.classes.loadingIndicator === undefined // Do not apply to loading button
|
||||
);
|
||||
},
|
||||
style: {
|
||||
backgroundColor: `${theme.palette.secondary.main} !important`,
|
||||
color: `${theme.palette.secondary.contrastText} !important`,
|
||||
@@ -101,6 +107,7 @@ const baseTheme = (palette) => ({
|
||||
}),
|
||||
},
|
||||
},
|
||||
|
||||
MuiIconButton: {
|
||||
styleOverrides: {
|
||||
root: ({ theme }) => ({
|
||||
|
||||
Reference in new issue
Block a user