Changeset 64243
- Timestamp:
- 10/08/2026 02:28:31 PM (7 hours ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 2 edited
-
css/themes.css (modified) (1 diff)
-
theme-install.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/themes.css
r64242 r64243 283 283 .theme-browser .theme.active .theme-actions .button:not(.button-primary):focus { 284 284 background: #fff; 285 box-shadow: 286 0 0 0 var(--wp-admin-border-width-focus, 1.5px) #fff, 287 inset 0 0 0 1px var(--wp-admin-theme-color, #3858e9); 288 outline: 1px solid transparent; 289 } 290 291 /* Active theme card: uses white outer ring against the colored banner. */ 292 .theme-browser .theme.active .theme-actions .button.disabled:focus { 293 box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) #fff, inset 0 0 0 1px var(--wp-admin-theme-color, #3858e9) !important; 294 outline: 1px solid transparent; 295 } 296 297 /* Other theme cards: standard focus ring on the card white background. */ 298 .theme-browser .theme:not(.active) .theme-actions .button.disabled:focus { 299 box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9) !important; 300 outline: 1px solid transparent; 285 301 } 286 302 -
trunk/src/wp-admin/theme-install.php
r64241 r64243 417 417 <a class="button button-primary button-compact activate" href="{{ data.activate_url }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Activate' ); ?></a> 418 418 <# } else { #> 419 <button class="button button-primary button-compact disabled"><?php _ex( 'Activated', 'theme' ); ?></button>419 <button type="button" class="button button-primary button-compact disabled" aria-disabled="true"><?php _ex( 'Activated', 'theme' ); ?></button> 420 420 <# } #> 421 421 <# } #> … … 437 437 ?> 438 438 <# if ( data.activate_url ) { #> 439 < a class="button button-primary button-compact disabled" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _ex( 'Cannot Activate', 'theme' ); ?></a>439 <button type="button" class="button button-primary button-compact disabled" aria-label="<?php echo esc_attr( $aria_label ); ?>" aria-disabled="true"><?php _ex( 'Cannot Activate', 'theme' ); ?></button> 440 440 <# } #> 441 441 <# if ( data.customize_url ) { #> 442 < a class="button button-compact disabled"><?php _e( 'Live Preview' ); ?></a>442 <button type="button" class="button button-compact disabled" aria-disabled="true"><?php _e( 'Live Preview' ); ?></button> 443 443 <# } else { #> 444 <button class="button button-compact disabled"><?php echo esc_html_x( 'Preview', 'verb' ); ?></button>444 <button type="button" class="button button-compact disabled" aria-disabled="true"><?php echo esc_html_x( 'Preview', 'verb' ); ?></button> 445 445 <# } #> 446 446 <# } #> … … 458 458 $aria_label = sprintf( _x( 'Cannot Install %s', 'theme' ), '{{ data.name }}' ); 459 459 ?> 460 < a class="button button-primary button-compact disabled" data-name="{{ data.name }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _ex( 'Cannot Install', 'theme' ); ?></a>461 <button class="button button-compact disabled"><?php echo esc_html_x( 'Preview', 'verb' ); ?></button>460 <button type="button" class="button button-primary button-compact disabled" data-name="{{ data.name }}" aria-label="<?php echo esc_attr( $aria_label ); ?>" aria-disabled="true"><?php _ex( 'Cannot Install', 'theme' ); ?></button> 461 <button type="button" class="button button-compact disabled" aria-disabled="true"><?php echo esc_html_x( 'Preview', 'verb' ); ?></button> 462 462 <# } #> 463 463 <# } #> … … 496 496 <a class="button button-primary activate" href="{{ data.activate_url }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Activate' ); ?></a> 497 497 <# } else { #> 498 <button class="button button-primary disabled"><?php _ex( 'Activated', 'theme' ); ?></button>498 <button type="button" class="button button-primary disabled" aria-disabled="true"><?php _ex( 'Activated', 'theme' ); ?></button> 499 499 <# } #> 500 500 <# } else { #> 501 < a class="button button-primary disabled" ><?php _ex( 'Cannot Activate', 'theme' ); ?></a>501 <button type="button" class="button button-primary disabled" aria-disabled="true"><?php _ex( 'Cannot Activate', 'theme' ); ?></button> 502 502 <# } #> 503 503 <# } else { #> … … 505 505 <a href="{{ data.install_url }}" class="button button-primary theme-install" data-name="{{ data.name }}" data-slug="{{ data.id }}"><?php _e( 'Install' ); ?></a> 506 506 <# } else { #> 507 < a class="button button-primary disabled" ><?php _ex( 'Cannot Install', 'theme' ); ?></a>507 <button type="button" class="button button-primary disabled" aria-disabled="true"><?php _ex( 'Cannot Install', 'theme' ); ?></button> 508 508 <# } #> 509 509 <# } #>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)