& { localeProp: str
name="email"
id="email"
placeholder={t("your_email")}
- className="mt-1 block w-full rounded-sm border-gray-300 shadow-sm focus:border-neutral-800 focus:ring-neutral-800 sm:text-sm"
+ className="mt-1 block w-full rounded-sm border-gray-300 shadow-sm sm:text-sm"
defaultValue={props.user.email}
/>
@@ -262,7 +262,7 @@ function SettingsView(props: ComponentProps & { localeProp: str
placeholder={t("little_something_about")}
rows={3}
defaultValue={props.user.bio || undefined}
- className="mt-1 block w-full rounded-sm border-gray-300 shadow-sm focus:border-neutral-800 focus:ring-neutral-800 sm:text-sm">
+ className="mt-1 block w-full rounded-sm border-gray-300 shadow-sm sm:text-sm">
@@ -314,8 +314,7 @@ function SettingsView(props: ComponentProps & { localeProp: str
id="languageSelect"
value={selectedLanguage || props.localeProp}
onChange={(v) => v && setSelectedLanguage(v)}
- classNamePrefix="react-select"
- className="react-select-container mt-1 block w-full rounded-sm border border-gray-300 capitalize shadow-sm focus:border-neutral-800 focus:ring-neutral-800 sm:text-sm"
+ className="mt-1 block w-full rounded-sm capitalize shadow-sm sm:text-sm"
options={localeOptions}
/>
@@ -329,8 +328,7 @@ function SettingsView(props: ComponentProps & { localeProp: str
id="timeZone"
value={selectedTimeZone}
onChange={(v) => v && setSelectedTimeZone(v)}
- classNamePrefix="react-select"
- className="react-select-container mt-1 block w-full rounded-sm border border-gray-300 shadow-sm focus:border-neutral-800 focus:ring-neutral-800 sm:text-sm"
+ className="mt-1 block w-full rounded-sm shadow-sm sm:text-sm"
/>
@@ -343,8 +341,7 @@ function SettingsView(props: ComponentProps & { localeProp: str
id="timeFormatSelect"
value={selectedTimeFormat || props.user.timeFormat}
onChange={(v) => v && setSelectedTimeFormat(v)}
- classNamePrefix="react-select"
- className="react-select-container mt-1 block w-full rounded-sm border border-gray-300 capitalize shadow-sm focus:border-neutral-800 focus:ring-neutral-800 sm:text-sm"
+ className="mt-1 block w-full rounded-sm capitalize shadow-sm sm:text-sm"
options={timeFormatOptions}
/>
@@ -358,8 +355,7 @@ function SettingsView(props: ComponentProps & { localeProp: str
id="weekStart"
value={selectedWeekStartDay}
onChange={(v) => v && setSelectedWeekStartDay(v)}
- classNamePrefix="react-select"
- className="react-select-container mt-1 block w-full rounded-sm border border-gray-300 capitalize shadow-sm focus:border-neutral-800 focus:ring-neutral-800 sm:text-sm"
+ className="mt-1 block w-full rounded-sm capitalize shadow-sm sm:text-sm"
options={[
{ value: "Sunday", label: nameOfDay(props.localeProp, 0) },
{ value: "Monday", label: nameOfDay(props.localeProp, 1) },
@@ -375,7 +371,7 @@ function SettingsView(props: ComponentProps & { localeProp: str
type="checkbox"
ref={allowDynamicGroupBookingRef}
defaultChecked={props.user.allowDynamicBooking || false}
- className="h-4 w-4 rounded-sm border-gray-300 text-neutral-900 focus:ring-neutral-800"
+ className="h-4 w-4 rounded-sm border-gray-300 text-neutral-900 "
/>
@@ -397,7 +393,7 @@ function SettingsView(props: ComponentProps & { localeProp: str
defaultValue={selectedTheme || themeOptions[0]}
value={selectedTheme || themeOptions[0]}
onChange={(v) => v && setSelectedTheme(v)}
- className="| { value: string } mt-1 block w-full rounded-sm border-gray-300 shadow-sm focus:border-neutral-800 focus:ring-neutral-800 sm:text-sm"
+ className="mt-1 block w-full rounded-sm shadow-sm sm:text-sm"
options={themeOptions}
/>
@@ -409,7 +405,7 @@ function SettingsView(props: ComponentProps & { localeProp: str
type="checkbox"
onChange={(e) => setSelectedTheme(e.target.checked ? undefined : themeOptions[0])}
checked={!selectedTheme}
- className="h-4 w-4 rounded-sm border-gray-300 text-neutral-900 focus:ring-neutral-800"
+ className="h-4 w-4 rounded-sm border-gray-300 text-neutral-900 "
/>
@@ -420,19 +416,18 @@ function SettingsView(props: ComponentProps & { localeProp: str
-
+
-
+
-
diff --git a/apps/web/styles/globals.css b/apps/web/styles/globals.css
index f976a14b..a2b646b9 100644
--- a/apps/web/styles/globals.css
+++ b/apps/web/styles/globals.css
@@ -9,6 +9,31 @@
--brand-text-color-dark-mode: #292929;
}
+/*
+ * Override the default tailwindcss-forms styling (default is: 'colors.blue.600')
+ * @see: https://github.com/tailwindlabs/tailwindcss-forms/issues/14#issuecomment-1005376006
+ */
+[type='text']:focus,
+[type='email']:focus,
+[type='url']:focus,
+[type='password']:focus,
+[type='number']:focus,
+[type='date']:focus,
+[type='datetime-local']:focus,
+[type='month']:focus,
+[type='search']:focus,
+[type='tel']:focus,
+[type='checkbox']:focus,
+[type='radio']:focus,
+[type='time']:focus,
+[type='week']:focus,
+[multiple]:focus,
+textarea:focus,
+select:focus {
+ --tw-ring-color: var(--brand-color);
+ border-color: var(--brand-color);
+}
+
button[role="switch"][data-state="checked"] {
@apply bg-gray-900;
}
@@ -36,7 +61,7 @@ button[role="switch"][data-state="checked"] span {
.react-daterange-picker > .react-daterange-picker__wrapper input {
/* Makes sure the on-focus behaviour is like Cal.com's */
- @apply focus:border-primary-500 focus:ring-primary-500 my-0.5 h-auto rounded-sm py-0.5;
+ @apply my-0.5 h-auto rounded-sm py-0.5;
}
/* note(PeerRich): TODO move @layer components into proper React Components: */
@@ -192,7 +217,7 @@ button[role="switch"][data-state="checked"] span {
}
.react-multi-email > [type="text"] {
- @apply focus:border-brand block w-full rounded-md border-gray-300 shadow-sm focus:ring-black dark:border-gray-900 dark:bg-gray-700 dark:text-white sm:text-sm;
+ @apply block w-full rounded-md border-gray-300 shadow-sm dark:border-gray-900 dark:bg-gray-700 dark:text-white sm:text-sm;
}
.react-multi-email [data-tag] {
@@ -238,34 +263,6 @@ button[role="switch"][data-state="checked"] span {
cursor: pointer;
}
-/* !important to override react-select */
-.react-select__value-container {
- border: 0 !important;
-}
-
-.react-select__input input {
- border: 0 !important;
- box-shadow: none !important;
-}
-
-.react-select__option--is-focused {
- background: #000 !important;
- color: #fff !important;
-}
-
-.react-select__control {
- border: 2px solid transparent !important;
- box-shadow: none !important;
-}
-
-.react-select__control.react-select__control--is-focused {
- border: 2px solid #000 !important;
- border-color: #000 !important;
- box-shadow: none !important;
- margin: -1px;
- padding: 1px;
-}
-
/* !important to override react-dates */
.DateRangePickerInput__withBorder {
border: 0 !important;