Make WordPress Core


Ignore:
Timestamp:
10/23/2023 06:44:06 PM (14 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.

Merges [56987] to the 6.4 branch
See #59411.

Location:
branches/6.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.4

  • branches/6.4/src/wp-includes/blocks/navigation.php

    r56816 r56988  
    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.