[wp-trac] [WordPress Trac] #46995: Notifications need ARIA `role` attribute of either `status` or `alert` for accessibility purposes

WordPress Trac noreply at wordpress.org
Fri Apr 19 14:56:01 UTC 2019


#46995: Notifications need ARIA `role` attribute of either `status` or `alert` for
accessibility purposes
---------------------------+-----------------------------
 Reporter:  dannylonglegs  |      Owner:  (none)
     Type:  enhancement    |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  General        |    Version:  5.1.1
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 During a recent accessibility audit at Pressbooks, we were informed that
 in order for notifications to be accessible, they need and ARIA `role` of
 either `status` or `alert`.

 **`role=alert` documentation:**
 https://developer.mozilla.org/en-
 US/docs/Web/Accessibility/ARIA/Roles/Alert_Role

 **`role=status` documentation:**
 https://developer.mozilla.org/en-
 US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_status_role

 **Examples in WP code:**
 https://github.com/WordPress/WordPress/blob/355d5f9bb76bff0a24970cea8a5be22d9ed612d4
 /wp-admin/themes.php#L203

 https://github.com/WordPress/WordPress/blob/355d5f9bb76bff0a24970cea8a5be22d9ed612d4
 /wp-admin/import.php#L63-L71

 These HTML elements, usually with the `id="message"` or `class="error"`
 should have ARIA roles.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46995>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list