Fix: Enhance MuiButton disabled state styles in theme
This commit is contained in:
1 parent
aac1d17e7d
commit
959e555744
3 files changed
+6
-8
No files matched your search
@@ -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>
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user