Make WordPress Core

Ticket #26639: 26639.6.diff

File 26639.6.diff, 1.5 KB (added by azaozz, 11 years ago)
  • src/wp-admin/js/common.js

     
    571571
    572572                                $( this ).parent( 'li' ).toggleClass( 'selected' );
    573573                                event.preventDefault();
     574                        }).on( 'focusin.wp-responsive', function() {
     575                                if ( $adminmenu.data('wp-responsive') ) {
     576                                        $wpwrap.addClass( 'wp-responsive-open' );
     577                                }
     578                        }).on( 'focusout.wp-responsive', function() {
     579                                if ( $adminmenu.data('wp-responsive') ) {
     580                                        $wpwrap.removeClass( 'wp-responsive-open' );
     581                                }
     582                        }).find( 'a.wp-has-submenu' ).on( 'focus.wp-responsive-focus', function() {
     583                                // Open the submenu.
     584                                // This can be made to toggle the submenus, however there is a weird bug in Firefox:
     585                                // each other tab focuses the body instead of the next <a>...
     586                                $(this).parent('li').addClass( 'selected' );
    574587                        });
    575588
    576589                        self.trigger();
  • src/wp-includes/admin-bar.php

     
    166166        if ( is_admin() ) {
    167167                $wp_admin_bar->add_menu( array(
    168168                        'id'    => 'menu-toggle',
    169                         'title' => '<span class="ab-icon"></span>',
     169                        'title' => '<span class="ab-icon"></span><span class="screen-reader-text">' . __( 'Menu' ) . '</span>',
    170170                        'href'  => '#',
    171                         'meta'  => array(
    172                                 'title' => __( 'Menu' ),
    173                         ),
    174171                ) );
    175172        }
    176173}