Ticket #42055: 42055.diff
File 42055.diff, 3.0 KB (added by , 7 years ago) |
---|
-
src/wp-admin/includes/theme.php
632 632 ?> 633 633 <script type="text/html" id="tmpl-customize-themes-details-view"> 634 634 <div class="theme-backdrop"></div> 635 <div class="theme-wrap wp-clearfix" >635 <div class="theme-wrap wp-clearfix" role="document"> 636 636 <div class="theme-header"> 637 637 <button type="button" class="left dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Show previous theme' ); ?></span></button> 638 638 <button type="button" class="right dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Show next theme' ); ?></span></button> -
src/wp-admin/js/theme.js
683 683 684 684 // Set initial focus on the primary action control. 685 685 _.delay( function() { 686 $( '.theme- wrap a.button-primary:visible' ).focus();686 $( '.theme-overlay' ).focus(); 687 687 }, 100 ); 688 688 689 689 // Constrain tabbing within the modal. … … 1603 1603 this.listenTo( this.collection, 'query:fail', function() { 1604 1604 $( 'body' ).removeClass( 'loading-content' ); 1605 1605 $( '.theme-browser' ).find( 'div.error' ).remove(); 1606 $( '.theme-browser' ).find( 'div.themes' ).before( '<div class="error"><p>' + l10n.error + '</p><p><button class="button try-again">' + l10n.tryAgain + '</button></p></div>' ); 1607 $( '.theme-browser .error .try-again' ).on( 'click', function( e ) { 1608 e.preventDefault(); 1609 $( 'input.wp-filter-search' ).trigger( 'input' ); 1606 $( '.theme-browser' ).find( 'div.themes' ).before( '<div class="error"><p>' + l10n.error + '</p><p><button class="button try-again">' + l10n.tryAgain + '</button></p></div>' ); 1607 $( '.theme-browser .error .try-again' ).on( 'click', function( e ) { 1608 e.preventDefault(); 1609 $( 'input.wp-filter-search' ).trigger( 'input' ); 1610 1610 } ); 1611 1611 }); 1612 1612 -
src/wp-admin/themes.php
301 301 <?php endforeach; ?> 302 302 </div> 303 303 </div> 304 <div class="theme-overlay" ></div>304 <div class="theme-overlay" tabindex="0" role="dialog" aria-label="<?php esc_attr_e( 'Theme Details' ); ?>"></div> 305 305 306 306 <p class="no-themes"><?php _e( 'No themes found. Try a different search query.' ); ?></p> 307 307 … … 431 431 432 432 <script id="tmpl-theme-single" type="text/template"> 433 433 <div class="theme-backdrop"></div> 434 <div class="theme-wrap wp-clearfix" >434 <div class="theme-wrap wp-clearfix" role="document"> 435 435 <div class="theme-header"> 436 436 <button class="left dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Show previous theme' ); ?></span></button> 437 437 <button class="right dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Show next theme' ); ?></span></button>