Skip to content

Scheduling infrastructure for absolutely everyone.

[CAL-1410] Tokens update - Lightmode issues (#8598)

GitStart-Cal.coma371cd60835a
diff --git a/packages/ui/components/form/switch/Switch.tsx b/packages/ui/components/form/switch/Switch.tsx
index 8c0d04f0a8e..ac4198de0e6 100644
--- a/packages/ui/components/form/switch/Switch.tsx
+++ b/packages/ui/components/form/switch/Switch.tsx
@@ -40,9 +40,9 @@ const Switch = (
)}>
<PrimitiveSwitch.Root
className={cx(
- props.checked || props.defaultChecked ? "bg-brand-default" : "bg-emphasis",
+ isChecked ? "bg-brand-default" : "bg-emphasis",
primitiveProps.disabled && "cursor-not-allowed",
- "focus:ring-brand-default h-5 w-[34px] rounded-full shadow-none",
+ "focus:ring-brand-default h-5 w-[34px] rounded-full shadow-none focus:border-neutral-300 focus:outline-none focus:ring-2 focus:ring-neutral-800 focus:ring-offset-1",
props.className
)}
{...primitiveProps}>
diff --git a/packages/ui/components/form/timezone-select/TimezoneSelect.tsx b/packages/ui/components/form/timezone-select/TimezoneSelect.tsx
index b874e43ec44..cbf20559a07 100644
--- a/packages/ui/components/form/timezone-select/TimezoneSelect.tsx
+++ b/packages/ui/components/form/timezone-select/TimezoneSelect.tsx
@@ -52,18 +52,22 @@ export function TimezoneSelect({
classNames={{
...timezoneClassNames,
input: (state) =>
- classNames("text-emphasis h-6", timezoneClassNames?.input && timezoneClassNames.input(state)),
+ classNames(
+ "text-emphasis h-6 md:max-w-[145px] max-w-[250px]",
+ timezoneClassNames?.input && timezoneClassNames.input(state)
+ ),
option: (state) =>
classNames(
- "bg-default flex cursor-pointer justify-between py-2.5 px-3 rounded-none text-default ",
+ "bg-default flex !cursor-pointer justify-between py-2.5 px-3 rounded-none text-default ",
state.isFocused && "bg-subtle",
- state.isSelected && "bg-emphasis text-default",
+ state.isSelected && "bg-emphasis",
timezoneClassNames?.option && timezoneClassNames.option(state)
),
placeholder: (state) => classNames("text-muted", state.isFocused && "hidden"),
dropdownIndicator: () => "text-default",
control: (state) =>
classNames(
+ "!cursor-pointer",
variant === "default"
? "px-3 py-2 bg-default border-default !min-h-9 text-sm leading-4 placeholder:text-sm placeholder:font-normal focus-within:ring-2 focus-within:ring-emphasis hover:border-emphasis rounded-md border gap-1"
: "text-sm gap-1",