Skip to content

Scheduling infrastructure for absolutely everyone.

fixed Select component ':active' option color (#2207)

Vlad46f515a19f07
diff --git a/apps/web/components/ui/form/Select.tsx b/apps/web/components/ui/form/Select.tsx
index 1e9907bb805..e2945937250 100644
--- a/apps/web/components/ui/form/Select.tsx
+++ b/apps/web/components/ui/form/Select.tsx
@@ -20,6 +20,15 @@ function Select<
primary25: "rgba(244, 245, 246, var(--tw-bg-opacity))",
},
})}
+ styles={{
+ option: (base, state) => ({
+ ...base,
+ ":active": {
+ backgroundColor: state.isSelected ? "" : "rgba(17, 17, 17, var(--tw-bg-opacity))",
+ color: "#ffffff",
+ },
+ }),
+ }}
components={{
...components,
IndicatorSeparator: () => null,