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