Toolbar: Fix ARIA [role] on menu descendants.
Adds a `role="group"` to the WordPress admin bar menu list items to fix the following accessibility issue: {{{ Elements with an ARIA [role] that require children to contain a specific [role] are missing some or all of those required children. }}} Reference: * [https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/group_role ARIA: group role] via mdn web docs Follow-up to [42128], [21193], [19558]. Props heinperu, joedolson, krupajnanda, rajinsharwar, rcreators, sabernhardt. Fixes #60919. Built from https://develop.svn.wordpress.org/trunk@58438 git-svn-id: http://core.svn.wordpress.org/trunk@57887 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f5aa4c90bc
commit
b037dc4c00
|
@ -575,7 +575,7 @@ class WP_Admin_Bar {
|
|||
$menuclass = ' class="' . esc_attr( trim( $menuclass ) ) . '"';
|
||||
}
|
||||
|
||||
echo "<li id='" . esc_attr( 'wp-admin-bar-' . $node->id ) . "'$menuclass>";
|
||||
echo "<li role='group' id='" . esc_attr( 'wp-admin-bar-' . $node->id ) . "'$menuclass>";
|
||||
|
||||
if ( $has_link ) {
|
||||
$attributes = array( 'onclick', 'target', 'title', 'rel', 'lang', 'dir' );
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.6-beta2-58437';
|
||||
$wp_version = '6.6-beta2-58438';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue