Since site alerts are dynamic from ajax and can change at any time, to make them accessible the block needs to have a
aria-live="polite"
This will cause assistive technology to notify the user whenever content in the block changes.
Reference
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Liv...
https://bitsofco.de/using-aria-live/
https://accessibilityresources.org/aria-live
Since site alerts are not typically related to some user action, the arai role of "alert" should probably not be used.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | site_alert-add-508-aria-3120303-3.patch | 513 bytes | swirt |
Comments
Comment #2
swirtComment #3
swirtHere is a simple patch to add the aria-live attribute.
Comment #4
kevinwalsh commentedComment #6
pfrenssenVery nice addition, thanks very much!