#36640: Error messages should use aria-errormessage
-------------------------------------+-------------------------------------
Reporter: Tobias Bengfort | Owner: (none)
Type: | Status: new
Cleanup/optimization |
Component: Forms | Version: 5.2
Severity: Normal | Resolution:
Keywords: accessibility, ui, | Triage Stage:
forms | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------
Comment (by Antoliny):
Thank you Tobias :)
I like this proposal.
I looked into the materials you provided and also researched `aria-
errormessage`.
It does seem that providing error messages through a`ria-errormessage`,
instead of including both the error message and help text in `aria-
describedby`, offers more advantages.
However, the problem lies in the support coverage of `aria-errormessage`.
It appears that `aria-errormessage` is not yet supported by macOS
VoiceOver and TalkBack.
While it is supported by screen readers with higher market share( NVDA,
JAWS, and iOS VoiceOver..), I wasn’t able to confidently triage this issue
because of that limitation.
If we switch to using `aria-errormessage`, devices that don’t support it
won’t read out the error message at all, which could actually make the
experience worse than before.
So I think it would be best to get the accessibility team opinion on this.
--
Ticket URL: <
https://code.djangoproject.com/ticket/36640#comment:2>