Fix: Enhance MuiButton disabled state styles in theme

This commit is contained in:
Aryaman Kumar Sharma committed 2025-01-30 17:44:28 +05:30
1 parent aac1d17e7d
commit 959e555744
3 files changed
+6 -8

No files matched your search

+1 -1
View File
@@ -99,7 +99,7 @@ const ImageField = ({ id, src, loading, onChange }) => {
<Typography <Typography
component="span" component="span"
fontSize="inherit" fontSize="inherit"
color={theme.palette.accent.main} color="info"
fontWeight={500} fontWeight={500}
> >
Click to upload Click to upload
@@ -445,7 +445,7 @@ const ProfilePanel = () => {
> >
<Button <Button
variant="text" variant="text"
color="accent" color="info"
onClick={removePicture} onClick={removePicture}
> >
Remove Remove
@@ -460,12 +460,6 @@ const ProfilePanel = () => {
? true ? true
: false : false
} }
sx={{
"&.Mui-disabled": {
backgroundColor: theme.palette.primary.lowContrast,
color: theme.palette.primary.main,
},
}}
> >
Update Update
</Button> </Button>
+4
View File
@@ -110,6 +110,10 @@ const baseTheme = (palette) => ({
"&:hover": { "&:hover": {
boxShadow: "none", boxShadow: "none",
}, },
"&.Mui-disabled": {
backgroundColor: theme.palette.secondary.main,
color: theme.palette.primary.main,
},
"&.MuiLoadingButton-root": { "&.MuiLoadingButton-root": {
"&:disabled": { "&:disabled": {
backgroundColor: theme.palette.secondary.main, backgroundColor: theme.palette.secondary.main,