Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/wp-content/themes/twentynineteen/inc/icon-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ function twentynineteen_add_dropdown_icons( $item_output, $item, $depth, $args )
// Inject the keyboard_arrow_left SVG inside the parent nav menu item, and let the item link to the parent item.
// @todo Only do this for nested submenus? If on a first-level submenu, then really the link could be "#" since the desire is to remove the target entirely.
$link = sprintf(
'<button class="menu-item-link-return" tabindex="-1">%s',
'<button class="menu-item-link-return" tabindex="-1" aria-label="%s">%s',
/* translators: %s: Parent menu item name. */
esc_attr( sprintf( __( 'Return to %s', 'twentynineteen' ), $item->title ) ),
Comment thread
joedolson marked this conversation as resolved.
twentynineteen_get_icon_svg( 'chevron_left', 24 )
);

Expand All @@ -106,7 +108,9 @@ function twentynineteen_add_dropdown_icons( $item_output, $item, $depth, $args )
$icon = twentynineteen_get_icon_svg( 'keyboard_arrow_down', 24 );

$item_output .= sprintf(
'<button class="submenu-expand" tabindex="-1">%s</button>',
'<button class="submenu-expand" tabindex="-1" aria-label="%s">%s</button>',
/* translators: %s: Parent menu item name. */
esc_attr( sprintf( __( 'Expand child menu for %s', 'twentynineteen' ), $item->title ) ),
Comment thread
joedolson marked this conversation as resolved.
$icon
);
}
Expand Down
Loading