Make WordPress Core


Ignore:
Timestamp:
05/19/2026 11:35:32 AM (4 months ago)
Author:
audrasjb
Message:

Admin Reskin: Standardize theme install overlay button height on mobile.

Follow-up to [61646].

Reviewed by audrasjb.
Merges [62294] to the 7.0 branch.
Props abcd95, wildworks, mosescursor, sainathpoojary, SergeyBiryukov.
See #64999.

Location:
branches/7.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/7.0

  • branches/7.0/src/wp-admin/theme-install.php

    r62355 r62378  
    488488                                        ?>
    489489                                        <# if ( ! data.active ) { #>
    490                                                 <a class="button button-primary activate" href="{{ data.activate_url }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Activate' ); ?></a>
     490                                                <a class="button button-primary button-compact activate" href="{{ data.activate_url }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Activate' ); ?></a>
    491491                                        <# } else { #>
    492                                                 <button class="button button-primary disabled"><?php _ex( 'Activated', 'theme' ); ?></button>
     492                                                <button class="button button-primary button-compact disabled"><?php _ex( 'Activated', 'theme' ); ?></button>
    493493                                        <# } #>
    494494                                <# } else { #>
    495                                         <a class="button button-primary disabled" ><?php _ex( 'Cannot Activate', 'theme' ); ?></a>
     495                                        <a class="button button-primary button-compact disabled" ><?php _ex( 'Cannot Activate', 'theme' ); ?></a>
    496496                                <# } #>
    497497                        <# } else { #>
    498498                                <# if ( data.compatible_wp && data.compatible_php ) { #>
    499                                         <a href="{{ data.install_url }}" class="button button-primary theme-install" data-name="{{ data.name }}" data-slug="{{ data.id }}"><?php _e( 'Install' ); ?></a>
     499                                        <a href="{{ data.install_url }}" class="button button-primary button-compact theme-install" data-name="{{ data.name }}" data-slug="{{ data.id }}"><?php _e( 'Install' ); ?></a>
    500500                                <# } else { #>
    501                                         <a class="button button-primary disabled" ><?php _ex( 'Cannot Install', 'theme' ); ?></a>
     501                                        <a class="button button-primary button-compact disabled" ><?php _ex( 'Cannot Install', 'theme' ); ?></a>
    502502                                <# } #>
    503503                        <# } #>
Note: See TracChangeset for help on using the changeset viewer.