The #accessubility guidance in a design system often needs to be interpreted wit...
James Scholes @jscholes@dragonscave.space
The #accessubility guidance in a design system often needs to be interpreted within the context established by related advice elsewhere in the same system.
For example, the UK government recommends marking up the error summary (the list of validation errors on a form) with the "alert" role so that screen readers will announce the errors automatically upon submission:
This makes some sense when you consider that the UK government design system also heavily encourages multi-step forms with one page per step and often one field per page. The alert turns the page into more of a conversation.
For example: the page asks the user when their passport was issued. The user enters a date and presses next. The page informs them automatically that the date must be in the past because they accidentally entered the expiry information.
By contrast, the same pattern would be completely inappropriate for a form with 36 fields on the same page. If someone is applying for a job, presses submit, and triggers 10 validation errors, placing all of those upfront in the same alert is tantamount to yelling everything wrong with their submission in their face.
This doesn't make the UK government guidance wrong. It makes it right for them (in most cases) and it may be right for you too if you design forms in the same way. Otherwise it may need adapting.