Skip to content

Scheduling infrastructure for absolutely everyone.

Fixes select getting darkmode text color even on lightmode (#7799)

sean-brydone1411b3fb2eb
diff --git a/apps/web/components/DestinationCalendarSelector.tsx b/apps/web/components/DestinationCalendarSelector.tsx
index d2e752dd845..f8b817d3911 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 bf73456fe65..853fffd1adb 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 550655b42b0..d5a7a224234 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,