fix: adding color transparent to button when loading

This commit is contained in:
Caio Cabral
2024-12-03 19:12:51 -05:00
parent 972fbd5571
commit 941761cb15

View File

@@ -93,9 +93,19 @@ const baseTheme = (palette) => ({
"&:hover": {
boxShadow: "none",
},
"&.MuiLoadingButton-root:disabled": {
backgroundColor: theme.palette.secondary.main,
color: theme.palette.text.primary,
"&.MuiLoadingButton-root": {
"&:disabled": {
backgroundColor: theme.palette.secondary.main,
color: theme.palette.text.primary,
},
},
"&.MuiLoadingButton-loading": {
"& .MuiLoadingButton-label": {
color: "transparent",
},
"& .MuiLoadingButton-loadingIndicator": {
color: "inherit",
},
},
}),
},