Changeset 61009 for trunk/src/wp-includes/blocks/navigation.php
- Timestamp:
- 10/21/2025 07:11:53 AM (7 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/blocks/navigation.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/navigation.php
r59906 r61009 134 134 * 135 135 * @param array $needs_list_item_wrapper The list of blocks that need a list item wrapper. 136 * @return array The list of blocks that need a list item wrapper.137 136 */ 138 137 $needs_list_item_wrapper = apply_filters( 'block_core_navigation_listable_blocks', static::$needs_list_item_wrapper ); … … 480 479 481 480 $should_display_icon_label = isset( $attributes['hasIcon'] ) && true === $attributes['hasIcon']; 482 $toggle_button_icon = '<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true" focusable="false">< rect x="4" y="7.5" width="16" height="1.5" /><rect x="4" y="15" width="16" height="1.5" /></svg>';481 $toggle_button_icon = '<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M4 7.5h16v1.5H4z"></path><path d="M4 15h16v1.5H4z"></path></svg>'; 483 482 if ( isset( $attributes['icon'] ) ) { 484 483 if ( 'menu' === $attributes['icon'] ) { 485 $toggle_button_icon = '<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 5v1.5h14V5H5z m0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z" /></svg>';484 $toggle_button_icon = '<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 5v1.5h14V5H5z"></path><path d="M5 12.8h14v-1.5H5v1.5z"></path><path d="M5 19h14v-1.5H5V19z"></path></svg>'; 486 485 } 487 486 } … … 820 819 // Add directives to the parent `<li>`. 821 820 $tags->set_attribute( 'data-wp-interactive', 'core/navigation' ); 822 $tags->set_attribute( 'data-wp-context', '{ "submenuOpenedBy": { "click": false, "hover": false, "focus": false }, "type": "submenu", "modal": null }' );821 $tags->set_attribute( 'data-wp-context', '{ "submenuOpenedBy": { "click": false, "hover": false, "focus": false }, "type": "submenu", "modal": null, "previousFocus": null }' ); 823 822 $tags->set_attribute( 'data-wp-watch', 'callbacks.initMenu' ); 824 823 $tags->set_attribute( 'data-wp-on--focusout', 'actions.handleMenuFocusout' );
Note: See TracChangeset
for help on using the changeset viewer.