update theme to handle buttons

This commit is contained in:
Alex Holliday committed 2025-02-13 15:19:24 -08:00
1 parent 77959264d0
commit de71c5f339
1 file changed
+6 -5
+6 -5
View File
@@ -132,7 +132,7 @@ const baseTheme = (palette) => ({
backgroundColor: theme.palette.secondary.main,
color: theme.palette.primary.contrastText,
},
"&.MuiLoadingButton-root": {
"&.MuiButton-root": {
"&:disabled": {
backgroundColor: theme.palette.secondary.main,
color: theme.palette.primary.contrastText,
@@ -141,12 +141,13 @@ const baseTheme = (palette) => ({
boxShadow: `0 0 0 1px ${theme.palette.accent.main}`, // CAIO_REVIEW, this should really have a solid BG color
},
},
"&.MuiLoadingButton-loading": {
"& .MuiLoadingButton-label": {
"&.MuiButton-loading": {
"&:disabled": {
color: "transparent",
},
"& .MuiLoadingButton-loadingIndicator": {
color: "inherit",
"& .MuiButton-loadingIndicator": {
color: theme.palette.primary.contrastText,
},
},
}),