Skip to content

fix(accessibility): correct label–input association in NewPasswordForm (#3908)#3942

Open
Irfan762 wants to merge 1 commit intoprocessing:developfrom
Irfan762:fix/password-label-accessibility
Open

fix(accessibility): correct label–input association in NewPasswordForm (#3908)#3942
Irfan762 wants to merge 1 commit intoprocessing:developfrom
Irfan762:fix/password-label-accessibility

Conversation

@Irfan762
Copy link

Description

Fixes broken label–input association in NewPasswordForm that caused accessibility issues.

The htmlFor attributes did not correctly match their corresponding input id values, and one input ID contained spaces, which is invalid in HTML. This prevented screen readers from properly announcing the form fields (WCAG 2.1 Level A violation).

Changes Made

  • Fixed case mismatch between htmlFor and id for the password field
  • Replaced invalid spaced ID with camelCase (confirmPassword)
  • Ensured each <label> correctly maps to its <input>

Accessibility Impact

This restores proper label–input association and improves screen reader compatibility.

Issue

Closes #3908

@welcome
Copy link

welcome bot commented Feb 25, 2026

🎉 Thanks for opening this pull request! Please check out our contributing guidelines if you haven't already.

@Irfan762
Copy link
Author

Hi @raclim, I’ve submitted the PR for this issue. Could you please review when you have time? Thanks!

@Irfan762
Copy link
Author

Hi @ksen0 , I’ve submitted the PR for this issue. Could you please review when you have time? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NewPasswordForm: broken label–input association (accessibility)

1 participant