Ticket #32682: 32682.patch
File 32682.patch, 2.4 KB (added by , 9 years ago) |
---|
-
src/wp-admin/js/customize-nav-menus.js
436 436 this.itemSectionHeight(); 437 437 438 438 $( 'body' ).addClass( 'adding-menu-items' ); 439 this.$el.attr( 'aria-hidden', 'false' ); 439 440 440 441 // Collapse all controls. 441 442 _( this.currentMenuControl.getMenuItemControls() ).each( function( control ) { … … 459 460 this.selected = null; 460 461 461 462 $( 'body' ).removeClass( 'adding-menu-items' ); 463 this.$el.attr( 'aria-hidden', 'true' ); 462 464 $( '#available-menu-items .menu-item-handle.item-added' ).removeClass( 'item-added' ); 463 465 464 466 this.$search.val( '' ); … … 1800 1802 } 1801 1803 1802 1804 if ( ! $( 'body' ).hasClass( 'adding-menu-items' ) ) { 1805 $( this ).attr( 'aria-expanded', 'true' ); 1803 1806 api.Menus.availableMenuItemsPanel.open( self ); 1804 1807 } else { 1808 $( this ).attr( 'aria-expanded', 'false' ); 1805 1809 api.Menus.availableMenuItemsPanel.close(); 1806 1810 event.stopPropagation(); 1807 1811 } -
src/wp-includes/class-wp-customize-control.php
1538 1538 */ 1539 1539 public function content_template() { 1540 1540 ?> 1541 <button type="button" class="button-secondary add-new-menu-item" >1541 <button type="button" class="button-secondary add-new-menu-item" aria-expanded="false" aria-controls="available-menu-items"> 1542 1542 <?php _e( 'Add Items' ); ?> 1543 1543 </button> 1544 1544 <button type="button" class="not-a-button reorder-toggle"> -
src/wp-includes/class-wp-customize-nav-menus.php
601 601 */ 602 602 public function available_items_template() { 603 603 ?> 604 <div id="available-menu-items" class="accordion-container" >604 <div id="available-menu-items" class="accordion-container" aria-hidden="true"> 605 605 <div class="customize-section-title"> 606 606 <button type="button" class="customize-section-back" tabindex="-1"> 607 607 <span class="screen-reader-text"><?php _e( 'Back' ); ?></span>