fix: improve CustomEmailTextField styling and focus behavior (#26024)
This commit is contained in:
@@ -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)}
|
||||
|
||||
Reference in New Issue
Block a user