#107717Error message on failed login not announced
Description
Once an invalid username or password has been entered, an error message is displayed, but not automatically read by the screenreader.
Reproduction steps
- Go to Backend login /typo3/login
- Enter incorrect username / password combination
- Submit Login Form
- Errormessage is shown
clipboard-202510161124-mnxt8.png
Impact
Users does not know why login to TYPO3 Backend is not successful.
Target group
visually impaired user, screen reader user
Severity
high
Frequency
less common
Definition of Done
WHEN I use a desktop screenreader (NVDA, JAWS, VoiceOver) AND
I enter an invalid password/username combination that trigger the alert
I HEAR the error message when it appears (BUT focus DOES NOT transfer automatically when the alert appears)
I HEAR it identifies itself as an alert
Recommended solution
Define an assertive aria live region for the error message.
References / WCAG 2.2 Reference
1.3.1h, 3.3.1, 3.3.3, 4.1.3
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Roles/alert_role
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Guides/Live_regions
Reviews 3
Related issues 1
Files 1
History 710
-
Gerrit Code Review pushed patch set 1 for main to change 91221 status
NewUnder Review <span data-processor="relativetime" data-value="2025-10-23T10:06:47+00:00" > 10/23/25, 10:06 </span> -
Gerrit Code Review pushed patch set 2 for main to change 91221 <span data-processor="relativetime" data-value="2025-10-23T11:21:03+00:00" > 10/23/25, 11:21 </span>
-
Gerrit Code Review pushed patch set 1 for 13.4 to change 91228 <span data-processor="relativetime" data-value="2025-10-23T19:24:08+00:00" > 10/23/25, 19:24 </span>
-
René Pflamm commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2025-10-23T19:35:09+00:00" > 10/23/25, 19:35 </span> -
Sébastien Delcroix commented <span data-processor="relativetime" data-value="2025-10-24T09:09:38+00:00" > 10/24/25, 09:09 </span>
Question : is backend login involves any kind of Javascript/XHR/Ajax in TYPO3v13 ? (doesn’t seem to on my DDEV instance as I write)
If not, just adding the role=“alert” attribute is not useful because the whole page is reloaded. So screenreaders don’t announce something has changed on the page.
This only works with live ARIA-live regions that get their content updated “live”.
-
Benjamin Franzke commented <span data-processor="relativetime" data-value="2025-10-27T16:33:45+00:00" > 10/27/25, 16:33 </span>
Sébastien Delcroix wrote in #note-5:
> Question : is backend login involves any kind of Javascript/XHR/Ajax in TYPO3v13 ? (doesn’t seem to on my DDEV instance as I write)
>
> If not, just adding the role=“alert” attribute is not useful because the whole page is reloaded. So screenreaders don’t announce something has changed on the page.
>
> This only works with live ARIA-live regions that get their content updated “live”.Hey, there’s JavaScript involved, yes, but the page is indeed changed and the role=“alert” is rendered as static content.
This works anyway (tested with NVDA, Narrator and VoiceOver), which actually aligns to the spec, as this make an exception for alerts:
> The exception to this live region convention is alert, due to system accessibility notifications events required for the role. While an alert is a live region, its content is announced by assistive technology when the alert is rendered on the page and when the content changes.
-
Sébastien Delcroix commented <span data-processor="relativetime" data-value="2025-10-27T17:44:58+00:00" > 10/27/25, 17:44 </span>
Thanks for your answer.
MDN page about “alert” role doesn’t mention this exception, and says that content must be changed (or revealed) with Javascript : https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Roles/alert_role
I have trouble about testing this role in VoiceOver, how do you proceed ?
When I fail to log in, the page is reloaded and read by VoiceOver as usual, so the error message is read too but it’s not announced as an alert. -
Ayke Halder changed Related to #108035 <span data-processor="relativetime" data-value="2025-11-10T23:47:57+00:00" > 11/10/25, 23:47 </span>
-
Sébastien Delcroix commented <span data-processor="relativetime" data-value="2025-11-12T09:21:26+00:00" > 11/12/25, 09:21 </span>
@mte_mscr As initial issuer, can I have your feedback about this ?
-
Benni Mack changed status
ResolvedClosed <span data-processor="relativetime" data-value="2025-12-02T12:04:30+00:00" > 12/02/25, 12:04 </span>
Applied in changeset commit:3568faf15bdb40b13c5a1ca14bf8d6ec6403b4fc.