From 4d2f1e8b97aa13332c52be70798751659c5c9dcb Mon Sep 17 00:00:00 2001 From: Sean Edmunds Date: Tue, 31 Dec 2024 12:06:59 -0600 Subject: [PATCH] Fix text color --- src/pages/settings/components/ThemeCard.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/pages/settings/components/ThemeCard.tsx b/src/pages/settings/components/ThemeCard.tsx index 78a93bb..2e9742a 100644 --- a/src/pages/settings/components/ThemeCard.tsx +++ b/src/pages/settings/components/ThemeCard.tsx @@ -14,7 +14,10 @@ function ThemeCard({ handleOpen, handleDeleteTheme, theme, setValue, createTheme paddingLeft: 4, backgroundColor: theme.borderColor, borderRadius: '4px', - color: theme.primaryColor, + color: + theme.borderColor === theme.primaryColor + ? theme.accentColor + : theme.primaryColor, zIndex: 3, }} > @@ -28,10 +31,6 @@ function ThemeCard({ handleOpen, handleDeleteTheme, theme, setValue, createTheme backgroundSize: 'cover', backgroundColor: theme.backgroundColor, border: `solid ${theme.borderColor}`, - color: - theme.borderColor === theme.primaryColor - ? theme.accentColor - : theme.primaryColor, }} data-theme={theme.name} onClick={() => {