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.

CommentFileSizeAuthor
#3 site_alert-add-508-aria-3120303-3.patch513 bytesswirt

Comments

swirt created an issue. See original summary.

swirt’s picture

Issue summary: View changes
swirt’s picture

Status: Active » Needs review
StatusFileSize
new513 bytes

Here is a simple patch to add the aria-live attribute.

kevinwalsh’s picture

Status: Needs review » Reviewed & tested by the community

  • pfrenssen committed 444a733 on 8.x-1.x authored by swirt
    Issue #3120303 by swirt, kevinwalsh: Add aria attributes to support 508
    
pfrenssen’s picture

Status: Reviewed & tested by the community » Fixed

Very nice addition, thanks very much!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.