From 7050caa2f375144267dd0cb27f162e212009975c Mon Sep 17 00:00:00 2001 From: Johannes <72809645+jobenjada@users.noreply.github.com> Date: Mon, 24 Mar 2025 08:32:11 -0700 Subject: [PATCH] fix: tweak password reset ux (#5049) --- apps/web/modules/auth/login/components/login-form.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/web/modules/auth/login/components/login-form.tsx b/apps/web/modules/auth/login/components/login-form.tsx index cb9c80815e..d0eea0c62d 100644 --- a/apps/web/modules/auth/login/components/login-form.tsx +++ b/apps/web/modules/auth/login/components/login-form.tsx @@ -120,7 +120,6 @@ export const LoginForm = ({ }; const [showLogin, setShowLogin] = useState(false); - const [isPasswordFocused, setIsPasswordFocused] = useState(false); const [totpLogin, setTotpLogin] = useState(false); const [totpBackup, setTotpBackup] = useState(false); const formRef = useRef(null); @@ -202,7 +201,8 @@ export const LoginForm = ({ autoComplete="current-password" placeholder="*******" aria-placeholder="password" - onFocus={() => setIsPasswordFocused(true)} + aria-label="password" + aria-required="true" required className="focus:border-brand-dark focus:ring-brand-dark block w-full rounded-md border-slate-300 shadow-sm sm:text-sm" value={field.value} @@ -214,7 +214,7 @@ export const LoginForm = ({ )} /> - {passwordResetEnabled && isPasswordFocused && ( + {passwordResetEnabled && (