Changeset 52364 for trunk/src/wp-includes/blocks/navigation-submenu.php
- Timestamp:
- 12/14/2021 01:55:28 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/navigation-submenu.php
r52324 r52364 189 189 } 190 190 191 $aria_label = sprintf( 192 /* translators: Accessibility text. %s: Parent page title. */ 193 __( '%s submenu' ), 194 $label 195 ); 196 191 197 $html = '<li ' . $wrapper_attributes . '>'; 192 198 … … 227 233 // The submenu icon is rendered in a button here 228 234 // so that there's a clickable elment to open the submenu. 229 $html .= '<button aria-label="' . $ label . ' ' . __( 'submenu', 'gutenberg' ). '" class="wp-block-navigation__submenu-icon wp-block-navigation-submenu__toggle" aria-expanded="false">' . block_core_navigation_submenu_render_submenu_icon() . '</button>';235 $html .= '<button aria-label="' . $aria_label . '" class="wp-block-navigation__submenu-icon wp-block-navigation-submenu__toggle" aria-expanded="false">' . block_core_navigation_submenu_render_submenu_icon() . '</button>'; 230 236 } 231 237 } else { 232 238 // If menus open on click, we render the parent as a button. 233 $html .= '<button aria-label="' . $ label . ' ' . __( 'submenu', 'gutenberg' ). '" class="wp-block-navigation-item__content wp-block-navigation-submenu__toggle" aria-expanded="false">';239 $html .= '<button aria-label="' . $aria_label . '" class="wp-block-navigation-item__content wp-block-navigation-submenu__toggle" aria-expanded="false">'; 234 240 235 241 // Wrap title with span to isolate it from submenu icon.
Note: See TracChangeset
for help on using the changeset viewer.