Scheduling infrastructure for absolutely everyone.
Matches phone input darkmode to the rest of inputs (#3247)
Omar Lópeza4684042a632
diff --git a/apps/web/components/ui/form/PhoneInput.tsx b/apps/web/components/ui/form/PhoneInput.tsxindex 5455c21bae4..b10f57d86b5 100644--- a/apps/web/components/ui/form/PhoneInput.tsx+++ b/apps/web/components/ui/form/PhoneInput.tsx@@ -1,8 +1,6 @@import BasePhoneInput, { Props } from "react-phone-number-input/react-hook-form";import "react-phone-number-input/style.css";-import classNames from "@lib/classNames";-export type PhoneInputProps<FormValues> = Props<{value: string;@@ -19,10 +17,9 @@ function PhoneInput<FormValues>({ control, name, ...rest }: PhoneInputProps<Form{...rest}name={name}control={control}- className={classNames(- "border-1 focus-within:border-brand block w-full rounded-sm border border-gray-300 py-px px-3 shadow-sm ring-black focus-within:ring-1 dark:border-black dark:bg-black dark:text-white",- rest.disabled ? "bg-gray-200 dark:text-gray-500" : ""- )}+ countrySelectProps={{ className: "text-black" }}+ numberInputProps={{ className: "border-0 text-sm focus:ring-0 dark:bg-gray-700" }}+ className="border-1 focus-within:border-brand block w-full rounded-sm border border-gray-300 py-px pl-3 shadow-sm ring-black focus-within:ring-1 disabled:text-gray-500 disabled:opacity-50 dark:border-gray-900 dark:bg-gray-700 dark:text-white dark:selection:bg-green-500 disabled:dark:text-gray-500"/>);}diff --git a/apps/web/styles/globals.css b/apps/web/styles/globals.cssindex a6b60b13e41..b1a1e251d05 100644--- a/apps/web/styles/globals.css+++ b/apps/web/styles/globals.css@@ -61,17 +61,6 @@ button[role="switch"][data-state="checked"] span {transform: translateX(16px);}-/* PhoneInput dark-mode overrides (it would add a lot of boilerplate to do this in JavaScript) */-.PhoneInputInput {- @apply border-0 text-sm focus:ring-0;-}-.dark .PhoneInputInput {- @apply bg-black;-}-.PhoneInputCountrySelect {- @apply text-black;-}-/* DateRangePicker */.react-daterange-picker > .react-daterange-picker__wrapper {/* border consistent with other inputs */