diff --git a/src/checkout/components/PasswordInput/PasswordInput.tsx b/src/checkout/components/PasswordInput/PasswordInput.tsx index 005434a1e..a8ce05be9 100644 --- a/src/checkout/components/PasswordInput/PasswordInput.tsx +++ b/src/checkout/components/PasswordInput/PasswordInput.tsx @@ -32,7 +32,7 @@ export const PasswordInputComponent = ({ {label} {required && "*"} -
+
({ {...field} {...props} className={clsx( - "mt-0.5 block w-full appearance-none rounded-l-md border-neutral-300 transition-colors focus:border-neutral-300 focus:outline-none focus:ring focus:ring-neutral-200 focus:ring-opacity-50 active:border-neutral-200 active:outline-none", + "block w-full appearance-none rounded-md border-neutral-300 pr-10 transition-colors focus:border-neutral-300 focus:outline-none focus:ring focus:ring-neutral-200 focus:ring-opacity-50 active:border-neutral-200 active:outline-none", { "border-red-300": error }, props.className, )} /> -
- setPasswordVisible(!passwordVisible)} - icon={passwordVisible ? : } - className="h-full w-full rounded-r-md border border-l-0 border-neutral-300 bg-white px-3 focus:border-neutral-300 focus:outline-none focus:ring focus:ring-neutral-200 focus:ring-opacity-50 active:border-neutral-200 active:outline-none" - /> -
+ setPasswordVisible(!passwordVisible)} + icon={passwordVisible ? : } + className="absolute right-0 mt-px flex h-10 w-10 items-center justify-center rounded-md text-center focus:border-neutral-300 focus:outline-none focus:ring focus:ring-neutral-200 focus:ring-opacity-50 active:border-neutral-200 active:outline-none" + />
{error &&

{error}

}