Broken label–input association in AccountForm password fields (accessibility)
p5.js version
No response
What is your operating system?
None
Web browser and version
No response
Actual Behavior
Actual Behavior
Password-related labels in AccountForm.tsx use htmlFor values containing spaces, which do not correctly match valid input id attributes.
Examples: htmlFor="current password" — spaces in ID htmlFor="new password" — spaces in ID
IDs with spaces are invalid in HTML and break label–input association. Screen readers cannot properly announce these fields (WCAG 2.1 Level A violation).
Location
client/modules/User/components/AccountForm.tsx Line 147 Line 169
Expected Behavior
Each
currentPassword newPassword
Steps to reproduce
1.Open the Account Settings / Password update form 2. Inspect password fields 3. Observe htmlFor values contain spaces 4. Use a screen reader — labels are not properly announced
Hi @raclim
I’ve created an issue for the accessibility bug in AccountForm.tsx (password label–input association).
Could you please assign it to me? I’d like to work on fixing it.
Hi! I was reviewing the accessibility guidelines and would love to tackle this as my first issue. I'll add the proper id and htmlFor associations to the password fields in the Account form components. I can have a PR up for this shortly!
Thanks for opening this issue! I think this has actually been addressed by commit https://github.com/processing/p5.js-web-editor/commit/a722ec5c0f7734dc032944d86e8c1115e001a204, so I'm going to close this!