Ticket #33184: 33184.patch
| File 33184.patch, 10.8 KB (added by , 10 years ago) |
|---|
-
src/wp-admin/css/common.css
712 712 .postbox .hndle, 713 713 .stuffbox .hndle, 714 714 .control-section .accordion-section-title, 715 .control-section .was-accordion-section-title, 715 716 .sidebar-name, 716 717 #nav-menu-header, 717 718 #nav-menu-footer, … … 2959 2960 background: #fff; 2960 2961 } 2961 2962 2962 .accordion-section-title { 2963 .accordion-section-title, 2964 .was-accordion-section-title { 2963 2965 margin: 0; 2964 2966 padding: 12px 15px 15px; 2965 2967 position: relative; … … 2999 3001 display: none; 3000 3002 } 3001 3003 3002 .control-section .accordion-section-title { 3004 .control-section .accordion-section-title, 3005 .control-section .was-accordion-section-title { 3003 3006 border-left: none; 3004 3007 border-right: none; 3005 3008 padding: 10px 10px 11px 14px; -
src/wp-admin/css/customize-controls.css
57 57 margin-bottom: 15px; 58 58 } 59 59 60 #customize-controls .customize-info .accordion-section-title { 60 #customize-controls .customize-info .accordion-section-title, 61 #customize-controls .customize-info .was-accordion-section-title { 61 62 background: #fff; 62 63 color: #555; 63 64 border-left: none; … … 383 384 display: block; 384 385 } 385 386 386 .panel-meta.customize-info .accordion-section-title { 387 .panel-meta.customize-info .accordion-section-title, 388 .panel-meta.customize-info .was-accordion-section-title { 387 389 margin-left: 48px; 388 390 } 389 391 -
src/wp-admin/css/customize-nav-menus.css
686 686 687 687 #available-menu-items .accordion-section-title .no-items, 688 688 #available-menu-items .cannot-expand .accordion-section-title .spinner, 689 #available-menu-items .cannot-expand .accordion-section-title >button {689 #available-menu-items .cannot-expand .accordion-section-title button { 690 690 display: none; 691 691 } 692 692 693 #available-menu-items-search.cannot-expand . accordion-section-title .spinner {693 #available-menu-items-search.cannot-expand .was-accordion-section-title .spinner { 694 694 display: block; 695 695 } 696 696 … … 813 813 } 814 814 815 815 #available-menu-items .accordion-section-title.loading .spinner, 816 #available-menu-items-search.loading . accordion-section-title .spinner {816 #available-menu-items-search.loading .was-accordion-section-title .spinner { 817 817 visibility: visible; 818 818 margin: 0 20px; 819 819 } 820 820 821 #available-menu-items-search . clear-results {821 #available-menu-items-search .was-accordion-section-title .clear-results { 822 822 position: absolute; 823 823 top: 20px; 824 824 right: 20px; -
src/wp-admin/customize.php
148 148 <div id="widgets-right"><!-- For Widget Customizer, many widgets try to look for instances under div#widgets-right, so we have to add that ID to a container div in the Customizer for compat --> 149 149 <div class="wp-full-overlay-sidebar-content" tabindex="-1"> 150 150 <div id="customize-info" class="accordion-section customize-info"> 151 <div class=" accordion-section-title" aria-label="<?php esc_attr_e( 'Customizer Options' ); ?>">151 <div class="was-accordion-section-title" aria-label="<?php esc_attr_e( 'Customizer Options' ); ?>"> 152 152 <span class="preview-notice"><?php 153 153 echo sprintf( __( 'You are customizing %s' ), '<strong class="panel-title site-title">' . get_bloginfo( 'name' ) . '</strong>' ); 154 154 ?></span> 155 <button class="customize-help-toggle dashicons dashicons-editor-help" aria-expanded="false"><span class="screen-reader-text"><?php _e( 'Help' ); ?></span></button>155 <button type="button" class="customize-help-toggle dashicons dashicons-editor-help" aria-expanded="false"><span class="screen-reader-text"><?php _e( 'Help' ); ?></span></button> 156 156 </div> 157 157 <div class="customize-panel-description"><?php 158 158 _e( 'The Customizer allows you to preview changes to your site before publishing them. You can also navigate to different pages on your site to preview them.' ); -
src/wp-admin/js/customize-controls.js
1149 1149 1150 1150 meta = panel.container.find( '.panel-meta:first' ); 1151 1151 1152 meta.find( '> .accordion-section-title .customize-help-toggle' ).on( 'click keydown', function( event ) { 1153 if ( api.utils.isKeydownButNotEnterEvent( event ) ) { 1154 return; 1155 } 1156 event.preventDefault(); // Keep this AFTER the key filter above 1152 meta.find( '.customize-help-toggle' ).on( 'click', function( event ) { 1157 1153 1158 1154 meta = panel.container.find( '.panel-meta' ); 1159 1155 if ( meta.hasClass( 'cannot-expand' ) ) { … … 3059 3055 }); 3060 3056 3061 3057 // Expand/Collapse the main customizer customize info. 3062 $( '.customize-info' ).find( '> .accordion-section-title .customize-help-toggle' ).on( 'click keydown', function( event ) { 3063 if ( api.utils.isKeydownButNotEnterEvent( event ) ) { 3064 return; 3065 } 3066 event.preventDefault(); // Keep this AFTER the key filter above 3058 $( '.customize-info' ).find( '.customize-help-toggle' ).on( 'click', function( event ) { 3067 3059 3068 3060 var section = $( this ).closest( '.accordion-section' ), 3069 3061 content = section.find( '.customize-panel-description:first' ); -
src/wp-admin/js/customize-nav-menus.js
138 138 } ); 139 139 140 140 // Clear the search results. 141 $( '.clear-results' ).on( 'click keydown', function( event ) { 142 if ( event.type === 'keydown' && ( 13 !== event.which && 32 !== event.which ) ) { // "return" or "space" keys only 143 return; 144 } 145 146 event.preventDefault(); 147 141 $( '.clear-results' ).on( 'click', function( event ) { 148 142 $( '#menu-items-search' ).val( '' ).focus(); 149 event.target.value = '';150 143 self.search( event ); 151 144 } ); 152 145 … … 202 195 $otherSections.fadeOut( 100 ); 203 196 $searchSection.find( '.accordion-section-content' ).slideDown( 'fast' ); 204 197 $searchSection.addClass( 'open' ); 205 $searchSection.find( '.clear-results' ) 206 .prop( 'tabIndex', 0 ) 207 .addClass( 'is-visible' ); 198 $searchSection.find( '.clear-results' ).addClass( 'is-visible' ); 208 199 } else if ( '' === event.target.value ) { 209 200 $searchSection.removeClass( 'open' ); 210 201 $otherSections.show(); 211 $searchSection.find( '.clear-results' ) 212 .prop( 'tabIndex', -1 ) 213 .removeClass( 'is-visible' ); 202 $searchSection.find( '.clear-results' ).removeClass( 'is-visible' ); 214 203 } 215 204 216 205 this.searchTerm = event.target.value; 217 206 this.pages.search = 1; 218 207 this.doSearch( 1 ); -
src/wp-includes/class-wp-customize-nav-menus.php
713 713 </h3> 714 714 </div> 715 715 <div id="available-menu-items-search" class="accordion-section cannot-expand"> 716 <div class=" accordion-section-title">716 <div class="was-accordion-section-title"> 717 717 <label class="screen-reader-text" for="menu-items-search"><?php _e( 'Search Menu Items' ); ?></label> 718 718 <input type="text" id="menu-items-search" placeholder="<?php esc_attr_e( 'Search menu items…' ) ?>" aria-describedby="menu-items-search-desc" /> 719 719 <p class="screen-reader-text" id="menu-items-search-desc"><?php _e( 'The search results will be updated as you type.' ); ?></p> 720 720 <span class="spinner"></span> 721 < span class="clear-results"><span class="screen-reader-text"><?php _e( 'Clear Results' ); ?></span></span>721 <button type="button" class="clear-results not-a-button"><span class="screen-reader-text"><?php _e( 'Clear Results' ); ?></span></button> 722 722 </div> 723 723 <ul class="accordion-section-content" data-type="search"></ul> 724 724 </div> -
src/wp-includes/class-wp-customize-panel.php
366 366 protected function content_template() { 367 367 ?> 368 368 <li class="panel-meta customize-info accordion-section <# if ( ! data.description ) { #> cannot-expand<# } #>"> 369 <button class="customize-panel-back" tabindex="-1"><span class="screen-reader-text"><?php _e( 'Back' ); ?></span></button>370 <div class=" accordion-section-title">369 <button type="button" class="customize-panel-back" tabindex="-1"><span class="screen-reader-text"><?php _e( 'Back' ); ?></span></button> 370 <div class="was-accordion-section-title"> 371 371 <span class="preview-notice"><?php 372 372 /* translators: %s is the site/panel title in the Customizer */ 373 373 echo sprintf( __( 'You are customizing %s' ), '<strong class="panel-title">{{ data.title }}</strong>' ); 374 374 ?></span> 375 <button class="customize-help-toggle dashicons dashicons-editor-help" tabindex="0" aria-expanded="false"><span class="screen-reader-text"><?php _e( 'Help' ); ?></span></button>375 <button type="button" class="customize-help-toggle dashicons dashicons-editor-help" tabindex="0" aria-expanded="false"><span class="screen-reader-text"><?php _e( 'Help' ); ?></span></button> 376 376 </div> 377 377 <# if ( data.description ) { #> 378 378 <div class="description customize-panel-description"> … … 458 458 <button type="button" class="customize-panel-back" tabindex="-1"> 459 459 <span class="screen-reader-text"><?php _e( 'Back' ); ?></span> 460 460 </button> 461 <div class=" accordion-section-title">461 <div class="was-accordion-section-title"> 462 462 <span class="preview-notice"> 463 463 <?php 464 464 /* Translators: %s is the site/panel title in the Customizer. */ -
src/wp-includes/class-wp-customize-section.php
352 352 <ul class="accordion-section-content"> 353 353 <li class="customize-section-description-container"> 354 354 <div class="customize-section-title"> 355 <button class="customize-section-back" tabindex="-1">355 <button type="button" class="customize-section-back" tabindex="-1"> 356 356 <span class="screen-reader-text"><?php _e( 'Back' ); ?></span> 357 357 </button> 358 358 <h3>