Skip to content

Commit dcaf9c4

Browse files
made it so that the password input becomes before the eye button so that tab navigation navigates to it before the button
1 parent 87b4199 commit dcaf9c4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

client/modules/User/components/LoginForm.jsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ function LoginForm() {
5757
{t('LoginForm.Password')}
5858
</label>
5959
<div className="form__field__password">
60+
<input
61+
className="form__input"
62+
aria-label={t('LoginForm.PasswordARIA')}
63+
type={showPassword ? 'text' : 'password'}
64+
id="password"
65+
autoComplete="current-password"
66+
{...field.input}
67+
/>
6068
<button
6169
className="form__eye__icon"
6270
type="button"
@@ -69,14 +77,6 @@ function LoginForm() {
6977
<AiOutlineEye />
7078
)}
7179
</button>
72-
<input
73-
className="form__input"
74-
aria-label={t('LoginForm.PasswordARIA')}
75-
type={showPassword ? 'text' : 'password'}
76-
id="password"
77-
autoComplete="current-password"
78-
{...field.input}
79-
/>
8080
</div>
8181
{field.meta.touched && field.meta.error && (
8282
<span className="form-error" aria-live="polite">

0 commit comments

Comments
 (0)