fix: adding color transparent to button when loading

This commit is contained in:
Caio Cabral committed 2024-12-03 19:12:51 -05:00
1 parent 972fbd5571
commit 941761cb15
1 file changed
+13 -3
+13 -3
View File
@@ -93,9 +93,19 @@ const baseTheme = (palette) => ({
"&:hover": { "&:hover": {
boxShadow: "none", boxShadow: "none",
}, },
"&.MuiLoadingButton-root:disabled": { "&.MuiLoadingButton-root": {
backgroundColor: theme.palette.secondary.main, "&:disabled": {
color: theme.palette.text.primary, backgroundColor: theme.palette.secondary.main,
color: theme.palette.text.primary,
},
},
"&.MuiLoadingButton-loading": {
"& .MuiLoadingButton-label": {
color: "transparent",
},
"& .MuiLoadingButton-loadingIndicator": {
color: "inherit",
},
}, },
}), }),
}, },