Ticket #36627: 36627.02.patch
File 36627.02.patch, 5.5 KB (added by , 9 years ago) |
---|
-
src/wp-admin/css/themes.css
1329 1329 .theme-install-overlay .close-full-overlay, 1330 1330 .theme-install-overlay .previous-theme, 1331 1331 .theme-install-overlay .next-theme { 1332 display: block;1332 padding: 0; 1333 1333 position: relative; 1334 1334 float: left; 1335 width: 4 5px;1335 width: 48px; 1336 1336 height: 45px; 1337 padding-right: 2px;1338 b ackground: #eee;1337 background: transparent; 1338 border: 0; 1339 1339 border-right: 1px solid #ddd; 1340 1340 color: #444; 1341 1341 cursor: pointer; 1342 text-decoration: none;1342 line-height: 1; 1343 1343 -webkit-transition: color .1s ease-in-out, background .1s ease-in-out; 1344 1344 transition: color .1s ease-in-out, background .1s ease-in-out; 1345 1345 } … … 1361 1361 .theme-install-overlay .close-full-overlay:before { 1362 1362 font: normal 22px/1 dashicons; 1363 1363 content: "\f335"; 1364 position: relative;1365 top: 7px;1366 left: 13px;1367 1364 } 1368 1365 1369 1366 .theme-install-overlay .previous-theme:before { 1370 1367 font: normal 20px/1 dashicons; 1371 1368 content: "\f341"; 1372 position: relative;1373 top: 6px;1374 left: 14px;1375 1369 } 1376 1370 1377 1371 .theme-install-overlay .next-theme:before { 1378 1372 font: normal 20px/1 dashicons; 1379 1373 content: "\f345"; 1380 position: relative;1381 top: 6px;1382 left: 13px;1383 1374 } 1384 1375 1385 1376 .theme-install-overlay .previous-theme.disabled, -
src/wp-admin/js/theme.js
572 572 573 573 // Disable previous at the zero position 574 574 if ( 0 === this.model.collection.indexOf( current ) ) { 575 $themeInstaller.find( '.previous-theme' ).addClass( 'disabled' ) ;575 $themeInstaller.find( '.previous-theme' ).addClass( 'disabled' ).attr({ 'tabindex': '-1', 'aria-hidden': 'true' }); 576 576 } 577 577 578 578 // Disable next if the next model is undefined 579 579 if ( _.isUndefined( this.model.collection.at( this.model.collection.indexOf( current ) + 1 ) ) ) { 580 $themeInstaller.find( '.next-theme' ).addClass( 'disabled' ) ;580 $themeInstaller.find( '.next-theme' ).addClass( 'disabled' ).attr({ 'tabindex': '-1', 'aria-hidden': 'true' }); 581 581 } 582 582 } 583 583 }); … … 697 697 698 698 // Disable Left/Right when at the start or end of the collection 699 699 if ( this.model.cid === this.model.collection.at(0).cid ) { 700 this.$el.find( '.left' ).addClass( 'disabled' ) ;700 this.$el.find( '.left' ).addClass( 'disabled' ).attr({ 'tabindex': '-1', 'aria-hidden': 'true' }); 701 701 } 702 702 if ( this.model.cid === this.model.collection.at( this.model.collection.length - 1 ).cid ) { 703 this.$el.find( '.right' ).addClass( 'disabled' ) ;703 this.$el.find( '.right' ).addClass( 'disabled' ).attr({ 'tabindex': '-1', 'aria-hidden': 'true' }); 704 704 } 705 705 }, 706 706 -
src/wp-admin/theme-install.php
251 251 <script id="tmpl-theme-preview" type="text/template"> 252 252 <div class="wp-full-overlay-sidebar"> 253 253 <div class="wp-full-overlay-header"> 254 < a href="#" class="close-full-overlay"><span class="screen-reader-text"><?php _e( 'Close' ); ?></span></a>255 < a href="#" class="previous-theme"><span class="screen-reader-text"><?php _ex( 'Previous', 'Button label for a theme' ); ?></span></a>256 < a href="#" class="next-theme"><span class="screen-reader-text"><?php _ex( 'Next', 'Button label for a theme' ); ?></span></a>254 <button type="button" class="close-full-overlay"><span class="screen-reader-text"><?php _e( 'Close' ); ?></span></button> 255 <button type="button" class="previous-theme"><span class="screen-reader-text"><?php _ex( 'Previous', 'Button label for a theme' ); ?></span></button> 256 <button type="button" class="next-theme"><span class="screen-reader-text"><?php _ex( 'Next', 'Button label for a theme' ); ?></span></button> 257 257 <# if ( data.installed ) { #> 258 < a href="#" class="button button-primary theme-install disabled"><?php _ex( 'Installed', 'theme' ); ?></a>258 <span class="button button-primary theme-install disabled"><?php _ex( 'Installed', 'theme' ); ?></span> 259 259 <# } else { #> 260 260 <a href="{{ data.install_url }}" class="button button-primary theme-install"><?php _e( 'Install' ); ?></a> 261 261 <# } #> -
src/wp-admin/themes.php
404 404 <div class="theme-backdrop"></div> 405 405 <div class="theme-wrap wp-clearfix"> 406 406 <div class="theme-header"> 407 <button class="left dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Show previous theme' ); ?></span></button>408 <button class="right dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Show next theme' ); ?></span></button>409 <button class="close dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Close details dialog' ); ?></span></button>407 <button type="button" class="left dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Show previous theme' ); ?></span></button> 408 <button type="button" class="right dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Show next theme' ); ?></span></button> 409 <button type="button" class="close dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Close details dialog' ); ?></span></button> 410 410 </div> 411 411 <div class="theme-about wp-clearfix"> 412 412 <div class="theme-screenshots">