bug(MatError): Screen reader doesn't announce errors shown after tabbing out of the field #29616
Labels
Accessibility
This issue is related to accessibility (a11y)
area: material/form-field
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Is this a regression?
I lean towards uncheck this checkbox even though it works in the previous version, because I suspect the issue resides in either screen readers or browsers.It looks like the cause of the issue is the MatError logic of handling live region, here is a raw HTML implementation that reflects the same behavior.
The previous version in which this bug was not present was
No response
Description
Some screen readers don't announce errors shown after tabbing out to the next interactive element.
The screen reader and browser combination that DOES announce the error after tabbing out
The screen reader and browser combination that DOES NOT announce the error after tabbing out
Reproduction
https://material.angular.io/components/form-field/overview#form-field-error
Steps to reproduce:
Expected Behavior
The error message should always be announced by screen readers.
Actual Behavior
The error message is announced for NVDA + Chrome, JAWS + Chrome and JAWS + Firefox, but is not announced for NVDA + Firefox, VO + Chrome and VO + Firefox.
Environment
The text was updated successfully, but these errors were encountered: