Skip to content

Scheduling infrastructure for absolutely everyone.

fix: improve CustomEmailTextField styling and focus behavior (#26024)

Kartik Labhshetwar2cab5475ce43
diff --git a/apps/web/components/settings/CustomEmailTextField.tsx b/apps/web/components/settings/CustomEmailTextField.tsx
index e4311af294c..2dbb99048fc 100644
--- a/apps/web/components/settings/CustomEmailTextField.tsx
+++ b/apps/web/components/settings/CustomEmailTextField.tsx
@@ -44,12 +44,14 @@ const CustomEmailTextField = ({
return (
<>
<div
- className={`border-default mt-2 flex w-full items-center rounded-[10px] border ${
- inputFocus ? "ring-brand-default border-neutral-300 ring-2" : ""
+ className={`mt-2 flex w-full items-center rounded-[10px] border transition-all ${
+ inputFocus
+ ? "border-emphasis shadow-outline-gray-focused"
+ : "border-default hover:border-emphasis shadow-outline-gray-rested"
}`}>
<Input
{...formMethods.register(formMethodFieldName)}
- className="focus:ring-none! focus:shadow-none! flex-1 border-none bg-transparent px-3 py-1.5 text-sm outline-none"
+ className="ring-0 focus:ring-0 focus:shadow-none! flex-1 border-none bg-transparent px-3 py-1.5 text-sm outline-none"
data-testid={dataTestId}
onFocus={() => setInputFocus(true)}
onBlur={() => setInputFocus(false)}