Make WordPress Core


Ignore:
Timestamp:
09/20/2023 09:01:02 PM (10 months ago)
Author:
joedolson
Message:

Administration: Improve control proximity in theme details modal.

Make the theme details modals in the Customizer and at Appearance > Themes consistent. Change the order of controls so both modals are in the same sequence, center all controls in both desktop and mobile views, and change delete link color to meet color contrast requirements.

Props trishasalas, afercia, melchoyce, karmatosed, cathibosco1, michaelarestad, joedolson, petitphp, mikinc860.
Fixes #59372. See #59371, #40822.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/theme.php

    r56635 r56639  
    10591059                    <button type="button" class="button button-primary customize-theme"><?php _e( 'Customize' ); ?></button>
    10601060                <# } else if ( 'installed' === data.type ) { #>
    1061                     <?php if ( current_user_can( 'delete_themes' ) ) { ?>
    1062                         <# if ( data.actions && data.actions['delete'] ) { #>
    1063                             <a href="{{{ data.actions['delete'] }}}" data-slug="{{ data.id }}" class="button button-secondary delete-theme"><?php _e( 'Delete' ); ?></a>
    1064                         <# } #>
    1065                     <?php } ?>
    1066 
     1061                    <div class="theme-inactive-actions">
    10671062                    <# if ( data.blockTheme ) { #>
    10681063                        <?php
     
    10801075                        <# } #>
    10811076                    <# } #>
     1077                    </div>
     1078                    <?php if ( current_user_can( 'delete_themes' ) ) { ?>
     1079                        <# if ( data.actions && data.actions['delete'] ) { #>
     1080                            <a href="{{{ data.actions['delete'] }}}" data-slug="{{ data.id }}" class="button button-secondary delete-theme"><?php _e( 'Delete' ); ?></a>
     1081                        <# } #>
     1082                    <?php } ?>
    10821083                <# } else { #>
    10831084                    <# if ( data.compatibleWP && data.compatiblePHP ) { #>
Note: See TracChangeset for help on using the changeset viewer.