adhocracy4
adhocracy4 copied to clipboard
a11y alerts
We should not use role="alert"
for success messages, we should use instead aria-live="polite"
only aria-live="assertive"
or the equivalent role="alert"
should be used for errors
https://github.com/liqd/adhocracy4/blob/7d9c6ab7d0d0df2c4f49606f958b3b1569d53baa/adhocracy4/static/Alert.jsx#L17
ref https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Live_Regions