-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Labels
Area:AccessibilityCategory for accessibility related features and bugsCategory for accessibility related features and bugsBugError or unexpected behaviorsError or unexpected behaviors
Description
p5.js version
No response
What is your operating system?
None
Web browser and version
No response
Actual Behavior
- Password field:
htmlFor="password"butid="Password"(case mismatch). - Confirm password:
htmlFor="confirm password"andid="confirm password"(spaces in ID are invalid).
Labels are not correctly associated with inputs. Screen readers cannot announce the fields properly (WCAG 2.1 Level A violation).
Location: client/modules/User/components/NewPasswordForm.tsx lines 30, 37, 50, 57
Expected Behavior
Each <label htmlFor="..."> must match exactly the id of its associated <input>. IDs must not contain spaces and should be single tokens (e.g. password, confirmPassword).
Steps to reproduce
- Open the “Set new password” form (e.g. from reset-password link).
- Inspect the password and confirm-password fields: label
htmlForand inputiddo not match (case and spaces). - Use a screen reader; labels are not announced correctly for these inputs.
Snippet:
// NewPasswordForm.tsx
<label htmlFor="password" className="form__label">...</label>
<input id="Password" ... /> // mismatch: Password vs password
<label htmlFor="confirm password" className="form__label">...</label>
<input id="confirm password" ... /> // invalid: spaces in idFix: Use id="password" and id="confirmPassword" with matching htmlFor values (e.g. htmlFor="password" and htmlFor="confirmPassword").
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Area:AccessibilityCategory for accessibility related features and bugsCategory for accessibility related features and bugsBugError or unexpected behaviorsError or unexpected behaviors