diff --git a/.changeset/announce-auth-errors.md b/.changeset/announce-auth-errors.md new file mode 100644 index 00000000..b499d6c2 --- /dev/null +++ b/.changeset/announce-auth-errors.md @@ -0,0 +1,9 @@ +--- +'ePDS': patch +--- + +Sign-in, recovery and handle-choice feedback is now announced automatically by screen readers. + +**Affects:** End users + +**End users:** authentication errors now use standard alert and live-region semantics across sign-in, recovery, handle selection, and the demo client, so screen-reader users hear failures without having to search the page for changed text. Repeated failures — such as entering a second incorrect one-time code — announce each time rather than falling silent, and handle availability ("Available!" / "Already taken.") is now announced as you type. diff --git a/packages/auth-service/src/routes/account-login.ts b/packages/auth-service/src/routes/account-login.ts index 7b044ab2..8d832555 100644 --- a/packages/auth-service/src/routes/account-login.ts +++ b/packages/auth-service/src/routes/account-login.ts @@ -151,7 +151,7 @@ function renderLoginForm(opts: { csrfToken: string; error?: string }): string {
Sign in to manage your account
- ${opts.error ? '' + escapeHtml(opts.error) + '
' : ''} + ${opts.error ? '' + escapeHtml(opts.error) + '
' : ''}