mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-06-04 11:25:52 +08:00
a11y(signup-page): autofocus first input element (email) (#343)
This commit is contained in:
parent
73e3e061e0
commit
e46ff48b80
@ -83,6 +83,7 @@ const Signup = ({ globalLoading, loggedIn }: SignupProps): JSX.Element => {
|
|||||||
<Input
|
<Input
|
||||||
placeholder="mike@netflix.com"
|
placeholder="mike@netflix.com"
|
||||||
type="email"
|
type="email"
|
||||||
|
autoFocus
|
||||||
value={formState.email.value}
|
value={formState.email.value}
|
||||||
onChange={(e): void => updateForm('email', e.target)}
|
onChange={(e): void => updateForm('email', e.target)}
|
||||||
required
|
required
|
||||||
@ -94,7 +95,6 @@ const Signup = ({ globalLoading, loggedIn }: SignupProps): JSX.Element => {
|
|||||||
<label htmlFor="signupFirstName">First Name</label>
|
<label htmlFor="signupFirstName">First Name</label>
|
||||||
<Input
|
<Input
|
||||||
placeholder="Mike"
|
placeholder="Mike"
|
||||||
autoFocus
|
|
||||||
value={formState.firstName.value}
|
value={formState.firstName.value}
|
||||||
onChange={(e): void => updateForm('firstName', e.target)}
|
onChange={(e): void => updateForm('firstName', e.target)}
|
||||||
required
|
required
|
||||||
|
Loading…
x
Reference in New Issue
Block a user