Skip to content

fix: use correct id value for label#4541

Open
loganripplinger wants to merge 1 commit intodexidp:masterfrom
loganripplinger:master
Open

fix: use correct id value for label#4541
loganripplinger wants to merge 1 commit intodexidp:masterfrom
loganripplinger:master

Conversation

@loganripplinger
Copy link

Overview

Fixes #4540

Fixes an accessibility issue in the default login template where the username <label> is not correctly associated with its <input>.

What this PR does / why we need it

The username label currently uses for="userid", but the corresponding input has id="login". This breaks the label/input association, so:

  • Clicking the “Username” label does not focus the username field
  • Assistive technologies may not correctly associate the label with the input
  • Automated testing tools (e.g., Playwright getByLabelText) cannot target the field

This PR updates the label to for="login" to match the existing input id, restoring correct accessibility semantics.

@loganripplinger loganripplinger force-pushed the master branch 2 times, most recently from bf1b1d2 to c3f8671 Compare February 13, 2026 23:26
Signed-off-by: Logan <31484824+loganripplinger@users.noreply.github.com>
@loganripplinger loganripplinger marked this pull request as ready for review February 13, 2026 23:50
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.

Broken label association: for="userid" does not match id="login" (html accessibility)

1 participant