Make WordPress Core


Ignore:
Timestamp:
10/23/2023 05:05:29 PM (7 months ago)
Author:
karmatosed
Message:

Update editor related npm packages for 6.4 RC2.

The npm packages needed update for 6.4 RC2.

Props siobhyb, cbravobernal, DAreRodz, luisherranz, artemiosans, afercia, jameskoster, czapla, alexstine, SantosGuillamot, ramonopoly, isabel_brison, andrewserong, jeryj, joedolson

See #59411.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/blocks/navigation.php

    r56816 r56987  
    9191        $w->set_attribute( 'data-wp-on--focusout', 'actions.core.navigation.handleMenuFocusout' );
    9292        $w->set_attribute( 'data-wp-on--keydown', 'actions.core.navigation.handleMenuKeydown' );
     93
     94        // This is a fix for Safari. Without it, Safari doesn't change the active
     95        // element when the user clicks on a button. It can be removed once we add
     96        // an overlay to capture the clicks, instead of relying on the focusout
     97        // event.
     98        $w->set_attribute( 'tabindex', '-1' );
     99
    93100        if ( ! isset( $block_attributes['openSubmenusOnClick'] ) || false === $block_attributes['openSubmenusOnClick'] ) {
    94101            $w->set_attribute( 'data-wp-on--mouseenter', 'actions.core.navigation.openMenuOnHover' );
Note: See TracChangeset for help on using the changeset viewer.