From e1411b3fb2ebbad2a21e6fbbdd7e61507dd387c5 Mon Sep 17 00:00:00 2001 From: sean-brydon <55134778+sean-brydon@users.noreply.github.com> Date: Fri, 17 Mar 2023 18:04:26 +0800 Subject: [PATCH] Fixes select getting darkmode text color even on lightmode (#7799) --- apps/web/components/DestinationCalendarSelector.tsx | 10 ---------- .../components/apps/DestinationCalendarSelector.tsx | 10 ---------- .../features/calendars/DestinationCalendarSelector.tsx | 10 ---------- 3 files changed, 30 deletions(-) diff --git a/apps/web/components/DestinationCalendarSelector.tsx b/apps/web/components/DestinationCalendarSelector.tsx index d2e752dd84..f8b817d391 100644 --- a/apps/web/components/DestinationCalendarSelector.tsx +++ b/apps/web/components/DestinationCalendarSelector.tsx @@ -94,16 +94,6 @@ const DestinationCalendarSelector = ({ styles={{ placeholder: (styles) => ({ ...styles, ...content(hidePlaceholder) }), singleValue: (styles) => ({ ...styles, ...content(hidePlaceholder) }), - option: (defaultStyles, state) => ({ - ...defaultStyles, - backgroundColor: state.isSelected - ? state.isFocused - ? "var(--brand-color)" - : "var(--brand-color)" - : state.isFocused - ? "var(--brand-color-dark-mode)" - : "var(--brand-text-color)", - }), control: (defaultStyles) => { return { ...defaultStyles, diff --git a/apps/web/components/apps/DestinationCalendarSelector.tsx b/apps/web/components/apps/DestinationCalendarSelector.tsx index bf73456fe6..853fffd1ad 100644 --- a/apps/web/components/apps/DestinationCalendarSelector.tsx +++ b/apps/web/components/apps/DestinationCalendarSelector.tsx @@ -96,16 +96,6 @@ const DestinationCalendarSelector = ({ styles={{ placeholder: (styles) => ({ ...styles, ...content(hidePlaceholder) }), singleValue: (styles) => ({ ...styles, ...content(hidePlaceholder) }), - option: (defaultStyles, state) => ({ - ...defaultStyles, - backgroundColor: state.isSelected - ? state.isFocused - ? "var(--brand-color)" - : "var(--brand-color)" - : state.isFocused - ? "var(--brand-color-dark-mode)" - : "var(--brand-text-color)", - }), control: (defaultStyles) => { return { ...defaultStyles, diff --git a/packages/features/calendars/DestinationCalendarSelector.tsx b/packages/features/calendars/DestinationCalendarSelector.tsx index 550655b42b..d5a7a22423 100644 --- a/packages/features/calendars/DestinationCalendarSelector.tsx +++ b/packages/features/calendars/DestinationCalendarSelector.tsx @@ -139,16 +139,6 @@ const DestinationCalendarSelector = ({ styles={{ placeholder: (styles) => ({ ...styles, ...content(hidePlaceholder) }), singleValue: (styles) => ({ ...styles, ...content(hidePlaceholder) }), - option: (defaultStyles, state) => ({ - ...defaultStyles, - backgroundColor: state.isSelected - ? state.isFocused - ? "var(--brand-color)" - : "var(--brand-color)" - : state.isFocused - ? "var(--brand-color-dark-mode)" - : "var(--brand-text-color)", - }), control: (defaultStyles) => { return { ...defaultStyles,