From 5b5f74091e1d4659735c646d0d5ce90ff552bfda Mon Sep 17 00:00:00 2001 From: jacovinus Date: Fri, 15 Dec 2023 17:16:00 +0100 Subject: [PATCH] fix: buttons contrast --- .../main/plugins/Cardinality/ConfigContainerStyles.tsx | 2 +- packages/main/plugins/Cardinality/DayPicker.tsx | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/main/plugins/Cardinality/ConfigContainerStyles.tsx b/packages/main/plugins/Cardinality/ConfigContainerStyles.tsx index 322f703f..b427a778 100644 --- a/packages/main/plugins/Cardinality/ConfigContainerStyles.tsx +++ b/packages/main/plugins/Cardinality/ConfigContainerStyles.tsx @@ -72,7 +72,7 @@ export const ConfigContainerStyles = (theme: any) => css` height: 30px; transition: 0.35s all; background: ${theme.primaryAccent}; - color: ${theme.contrast}; + color: ${theme.maxContrast}; padding: 4px 6px; border-radius: 3px; border: 1px solid ${theme.primary}; diff --git a/packages/main/plugins/Cardinality/DayPicker.tsx b/packages/main/plugins/Cardinality/DayPicker.tsx index 5d1f1f52..10b09a07 100644 --- a/packages/main/plugins/Cardinality/DayPicker.tsx +++ b/packages/main/plugins/Cardinality/DayPicker.tsx @@ -61,20 +61,20 @@ export const MenuStyles = (theme: any) => ({ "& .icon": { fontSize: "16px", marginRight: "4px", - color: `${theme.contrast}`, + color: `${theme.maxContrast}`, }, "& .item": { fontSize: "12px", - color: `${theme.contrast}`, + color: `${theme.maxContrast}`, }, ".rdp-day_selected, .rdp-day_selected:focus-visible, .rdp-day_selected:hover": { background: `${theme.primary}`, - color: `${theme.contrast}`, + color: `${theme.maxContrast}`, }, "& .rdp-day_selected : hover": { background: `${theme.primary}`, - color: `${theme.contrast}`, + color: `${theme.maxContrast}`, }, }); @@ -139,7 +139,7 @@ export default function PickerMenu() { size="small" sx={{ ml: 2, - color: `${theme.contrast}`, + color: `${theme.maxContrast}`, background: `${theme.primaryAccent}`, "&.MuiIconButton-root": { border: `1px solid ${theme.primary}`,