Refactored theme common color props and fixed button background delay on theme change
This commit is contained in:
1 parent
313a3af67c
commit
ac48378614
18 files changed
+48
-40
No files matched your search
@@ -38,12 +38,12 @@ const ImageField = ({ id, src, loading, onChange }) => {
|
||||
border: "dashed",
|
||||
borderRadius: theme.shape.borderRadius,
|
||||
borderColor: isDragging
|
||||
? theme.palette.common.main
|
||||
? theme.palette.primary.main
|
||||
: theme.palette.border.light,
|
||||
borderWidth: "2px",
|
||||
transition: "0.2s",
|
||||
"&:hover": {
|
||||
borderColor: theme.palette.common.main,
|
||||
borderColor: theme.palette.primary.main,
|
||||
backgroundColor: "hsl(215, 87%, 51%, 0.05)",
|
||||
},
|
||||
}}
|
||||
@@ -96,7 +96,7 @@ const ImageField = ({ id, src, loading, onChange }) => {
|
||||
<Typography
|
||||
component="span"
|
||||
fontSize="inherit"
|
||||
color={theme.palette.common.main}
|
||||
color={theme.palette.primary.main}
|
||||
fontWeight={500}
|
||||
>
|
||||
Click to upload
|
||||
|
||||
Reference in new issue
Block a user