Fix text color
This commit is contained in:
@@ -14,7 +14,10 @@ function ThemeCard({ handleOpen, handleDeleteTheme, theme, setValue, createTheme
|
|||||||
paddingLeft: 4,
|
paddingLeft: 4,
|
||||||
backgroundColor: theme.borderColor,
|
backgroundColor: theme.borderColor,
|
||||||
borderRadius: '4px',
|
borderRadius: '4px',
|
||||||
color: theme.primaryColor,
|
color:
|
||||||
|
theme.borderColor === theme.primaryColor
|
||||||
|
? theme.accentColor
|
||||||
|
: theme.primaryColor,
|
||||||
zIndex: 3,
|
zIndex: 3,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
@@ -28,10 +31,6 @@ function ThemeCard({ handleOpen, handleDeleteTheme, theme, setValue, createTheme
|
|||||||
backgroundSize: 'cover',
|
backgroundSize: 'cover',
|
||||||
backgroundColor: theme.backgroundColor,
|
backgroundColor: theme.backgroundColor,
|
||||||
border: `solid ${theme.borderColor}`,
|
border: `solid ${theme.borderColor}`,
|
||||||
color:
|
|
||||||
theme.borderColor === theme.primaryColor
|
|
||||||
? theme.accentColor
|
|
||||||
: theme.primaryColor,
|
|
||||||
}}
|
}}
|
||||||
data-theme={theme.name}
|
data-theme={theme.name}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user