clibs / website

The source code for clibs.org.
https://www.clibs.org
3 stars 2 forks source link

Add alert role to error for screen readers #13

Closed stephenmathieson closed 3 years ago

stephenmathieson commented 3 years ago

This patch adds role=alert to our <ErrorMessage> component. This helps users of assistive technologies (eg screen readers) understand that something bad happened when the <ErrorMessage> is rendered.

See https://www.w3.org/TR/WCAG20-TECHS/ARIA19.html