Ticket #31204: 31204.diff
File 31204.diff, 2.4 KB (added by , 10 years ago) |
---|
-
src/wp-admin/css/customize-controls.css
2 2 overflow: hidden; 3 3 } 4 4 5 .wp-customizer .screen-reader-shortcut:focus { 6 top: 6px; 7 } 8 5 9 #customize-controls a { 6 10 text-decoration: none; 7 11 } -
src/wp-admin/customize.php
139 139 140 140 <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 --> 141 141 <div class="wp-full-overlay-sidebar-content" tabindex="-1"> 142 <a tabindex="0" href="#customize-preview" class="screen-reader-shortcut preview-shortcut"><?php _e( 'Skip to site preview' ); ?></a> 142 143 <div id="customize-info" class="accordion-section <?php if ( $cannot_expand ) echo ' cannot-expand'; ?>"> 143 144 <div class="accordion-section-title" aria-label="<?php esc_attr_e( 'Customizer Options' ); ?>" tabindex="0"> 144 145 <span class="preview-notice"><?php … … 174 175 </div> 175 176 </div> 176 177 178 <a tabindex="0" href="#customize-preview" class="screen-reader-shortcut preview-shortcut"><?php _e( 'Skip to site preview' ); ?></a> 177 179 <div id="customize-footer-actions" class="wp-full-overlay-footer"> 178 180 <a href="#" class="collapse-sidebar button-secondary" title="<?php esc_attr_e('Collapse Sidebar'); ?>"> 179 181 <span class="collapse-sidebar-arrow"></span> -
src/wp-admin/js/customize-controls.js
2239 2239 event.preventDefault(); 2240 2240 }); 2241 2241 2242 $( '.preview-shortcut' ).on( 'click keydown', function( event ) { 2243 if ( api.utils.isKeydownButNotEnterEvent( event ) ) { 2244 return; 2245 } 2246 2247 var test = $( '#customize-preview' ).contents().find( ':focusable' ).first(); 2248 test.focus(); 2249 event.preventDefault(); 2250 }); 2251 2242 2252 // Bind site title display to the corresponding field. 2243 2253 if ( title.length ) { 2244 2254 $( '#customize-control-blogname input' ).on( 'input', function() {