Skip to content

Commit

Permalink
fix: adding color transparent to button when loading
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelluscaio committed Dec 4, 2024
1 parent 972fbd5 commit 941761c
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions Client/src/Utils/Theme/globalTheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
},
}),
},
Expand Down

0 comments on commit 941761c

Please sign in to comment.