From 0a761f6ccc71699ce47a4c5db7d7df6722e37886 Mon Sep 17 00:00:00 2001 From: Nate Kelley Date: Fri, 18 Apr 2025 10:23:04 -0600 Subject: [PATCH] Update LoginForm.tsx --- .../components/features/auth/LoginForm.tsx | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/web/src/components/features/auth/LoginForm.tsx b/web/src/components/features/auth/LoginForm.tsx index c91e71a85..31661f915 100644 --- a/web/src/components/features/auth/LoginForm.tsx +++ b/web/src/components/features/auth/LoginForm.tsx @@ -228,7 +228,8 @@ const LoginOptions: React.FC<{ onSignInWithGoogle(); }} block={true} - loading={loading === 'google'}> + loading={loading === 'google'} + tabIndex={1}> {!signUpFlow ? `Continue with Google` : `Sign up with Google`} @@ -267,6 +270,7 @@ const LoginOptions: React.FC<{ }} disabled={!!loading} autoComplete="email" + tabIndex={4} />
@@ -281,6 +285,7 @@ const LoginOptions: React.FC<{ name="password" placeholder="Password" autoComplete="new-password" + tabIndex={5} /> {signUpFlow && (
@@ -300,6 +305,7 @@ const LoginOptions: React.FC<{ name="password2" placeholder="Confirm password" autoComplete="new-password" + tabIndex={6} /> )} @@ -319,7 +325,8 @@ const LoginOptions: React.FC<{ type="submit" loading={loading === 'email'} variant="black" - disabled={!signUpFlow ? false : disableSubmitButton}> + disabled={!signUpFlow ? false : disableSubmitButton} + tabIndex={7}> {!signUpFlow ? `Sign in` : `Sign up`} @@ -333,7 +340,7 @@ const LoginOptions: React.FC<{ signUpFlow={signUpFlow} /> - {!signUpFlow && } + {!signUpFlow && }
); @@ -394,7 +401,7 @@ const AlreadyHaveAccount: React.FC<{ return (
- {signUpFlow ? `Already have an account? ` : `Don’t already have an account? `} + {signUpFlow ? `Already have an account? ` : `Don't already have an account? `} = ({ email }) => { +const ResetPasswordLink: React.FC<{ email: string; tabIndex?: number }> = ({ email, tabIndex }) => { const scrubbedEmail = useMemo(() => { if (!email || !isValidEmail(email)) return ''; try { @@ -431,7 +438,8 @@ const ResetPasswordLink: React.FC<{ email: string }> = ({ email }) => { createBusterRoute({ route: BusterRoutes.AUTH_RESET_PASSWORD_EMAIL }) + `?email=${scrubbedEmail}` - }> + } + tabIndex={tabIndex}> Reset password