p5.js-web-editor icon indicating copy to clipboard operation
p5.js-web-editor copied to clipboard

Broken label–input association in AccountForm password fields (accessibility)

Open Irfan762 opened this issue 9 months ago • 3 comments

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

Irfan762 avatar Feb 26 '26 04:02 Irfan762

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.

Irfan762 avatar Feb 26 '26 04:02 Irfan762

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!

ashuverma25 avatar Mar 19 '26 15:03 ashuverma25

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!

raclim avatar Apr 10 '26 18:04 raclim