Ticket #26639: 26639.5.diff
File 26639.5.diff, 2.2 KB (added by , 11 years ago) |
---|
-
src/wp-admin/css/wp-admin.css
11762 11762 .auto-fold #adminmenuback, 11763 11763 .auto-fold #adminmenuwrap { 11764 11764 position: absolute; 11765 left: 0;11765 width: 190px; 11766 11766 z-index: 100; 11767 11767 } 11768 11768 11769 11769 .auto-fold #adminmenuback, 11770 11770 .auto-fold #adminmenuwrap { 11771 left: -200px;11771 display: none; 11772 11772 } 11773 11773 11774 .auto-fold #adminmenuwrap,11775 .auto-fold #adminmenu,11776 .auto-fold #adminmenuback {11777 width: 190px;11778 }11779 11780 11774 .auto-fold #adminmenu li.menu-top { 11781 11775 width: 100%; 11782 11776 } … … 11880 11874 11881 11875 .auto-fold .wp-responsive-open #adminmenuback, 11882 11876 .auto-fold .wp-responsive-open #adminmenuwrap { 11883 left: 0;11877 display: block; 11884 11878 } 11885 11879 11886 11880 /* General New Post Form */ -
src/wp-admin/js/common.js
553 553 self.deactivate(); 554 554 }); 555 555 556 $( '#wp-admin-bar-menu-toggle a' ).attr( 'aria-expanded', 'false' ); 557 556 558 // Toggle sidebar when toggle is clicked 557 559 $( '#wp-admin-bar-menu-toggle' ).on( 'click.wp-responsive', function( event ) { 558 560 event.preventDefault(); 559 561 $wpwrap.toggleClass( 'wp-responsive-open' ); 562 if ( $wpwrap.hasClass( 'wp-responsive-open' ) ) { 563 $(this).find('a').attr( 'aria-expanded', 'true' ); 564 $( '#adminmenu a:first' ).focus(); 565 } else { 566 $(this).find('a').attr( 'aria-expanded', 'false' ); 567 } 560 568 } ); 561 569 562 570 // Add menu events -
src/wp-includes/admin-bar.php
166 166 if ( is_admin() ) { 167 167 $wp_admin_bar->add_menu( array( 168 168 'id' => 'menu-toggle', 169 'title' => '<span class="ab-icon"></span> ',169 'title' => '<span class="ab-icon"></span><span class="screen-reader-text">' . __( 'Menu' ) . '</span>', 170 170 'href' => '#', 171 'meta' => array(172 'title' => __( 'Menu' ),173 ),174 171 ) ); 175 172 } 176 173 }