Skip to content

Commit 1e08aab

Browse files
Arial label and arial live fixed and removes comment
1 parent 0bbe7ee commit 1e08aab

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

client/modules/User/components/SignupForm.jsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,15 @@ function SignupForm() {
8989
</label>
9090
<input
9191
className="form__input"
92+
aria-label={t('SignupForm.TitleARIA')}
9293
type="text"
9394
id="username"
9495
autoComplete="username"
9596
autoCapitalize="none"
9697
{...input}
9798
/>
9899
{meta.touched && meta.error && (
99-
<span className="form-error">{meta.error}</span>
100+
<span className="form-error" aria-live="polite">{meta.error}</span>
100101
)}
101102
</div>
102103
)}
@@ -111,13 +112,14 @@ function SignupForm() {
111112
</label>
112113
<input
113114
className="form__input"
115+
aria-label={t('SignupForm.EmailARIA')}
114116
type="email"
115117
id="email"
116118
autoComplete="email"
117119
{...input}
118120
/>
119121
{meta.touched && meta.error && (
120-
<span className="form-error">{meta.error}</span>
122+
<span className="form-error" aria-live="polite">{meta.error}</span>
121123
)}
122124
</div>
123125
)}
@@ -143,6 +145,7 @@ function SignupForm() {
143145
className="form__eye__icon"
144146
type="button"
145147
onClick={handleVisibility}
148+
aria-hidden="true"
146149
>
147150
{showPassword ? (
148151
<AiOutlineEyeInvisible />
@@ -152,7 +155,7 @@ function SignupForm() {
152155
</button>
153156
</div>
154157
{meta.touched && meta.error && (
155-
<span className="form-error">{meta.error}</span>
158+
<span className="form-error" aria-live="polite">{meta.error}</span>
156159
)}
157160
</div>
158161
)}
@@ -168,6 +171,7 @@ function SignupForm() {
168171
<div className="form__field__password">
169172
<input
170173
className="form__input"
174+
aria-label={t('SignupForm.ConfirmPasswordARIA')}
171175
type={showConfirmPassword ? 'text' : 'password'}
172176
id="confirmPassword"
173177
autoComplete="new-password"
@@ -186,7 +190,7 @@ function SignupForm() {
186190
</button>
187191
</div>
188192
{meta.touched && meta.error && (
189-
<span className="form-error">{meta.error}</span>
193+
<span className="form-error" aria-live="polite">{meta.error}</span>
190194
)}
191195
</div>
192196
)}

0 commit comments

Comments
 (0)