Closed TiffanyPender closed 2 years ago
Here is an error summary component from the UK government design system that we could potentially reference: https://design-system.service.gov.uk/components/error-summary/
Notes from the discussion we had about this topic in the 8/11/22 Preliminary Findings meeting:
Error messages work functionally, but we can improve the experience when there are multiple errors on the page at a given time (how do we manage that for people?)
Notes taken in the 8/18/22 Accessibility audit issue review and discussion meeting:
Discussed this ticket with @humancompanion-usds during the 8/23/22 PO Sync call. Matt will add a comment to this ticket summarizing the way forward on this issue.
A couple of thoughts here:
I agree with Tiffany that we should be able to "start with better text explaining what the errors are". Let's at least do that.
I still feel that summarizing the errors at the top is preferable to not doing that. We will need to do research to figure out if a complete summary is necessary or whether a count of errors or some briefer message is sufficient. We'll either look to find a VFS Team to try that out or get to it ourselves in the future.
I haven't had a chance yet to talk to the DST about what it would take to allow for tabbing through form fields without throwing errors. I believe we all agree that a minimum entry should be necessary before firing an alert. I just don't know technically across all of our form components how far we are from that behavior today (i.e. how many components we would we need to refactor). I believe we just did this for the new Memorable Date component so, it should be possible. I will file an issue for that for the DST to mull over.
"start with better text explaining what the errors are" is now ticket #586. Research ticket for "summarizing the errors at the top" is now ticket #587.
Split this ticket into three tickets (see comment above) for easier tracking. Will close this ticket as issues will now be tracked on the new tickets.
Issue description
Currently, the form errors get announced with role="alert", however, there are some ways the experience could be improved.
The errors are vague. They all say something like "Please provide a response". This could be because this is a demo form, and if that's the case, no problem. However, if this is a default setting for the components, we should rethink that. Let teams define that on their own using our content guidelines.Moved to ticket #586Environment
<Version 12.4>
<Version 102.0.5005.61>
Steps to Recreate