Skip to content

Commit b03a05e

Browse files
Admin Reskin: Correct Customizer “Publish” button size.
Follow-up to [61646]. Props mohitbsf, wildworks, joedolson, audrasjb, huzaifaalmesbah, SergeyBiryukov. Fixes #64689. git-svn-id: https://develop.svn.wordpress.org/trunk@62295 602fd350-edb4-49c9-b593-d223f7449a82
1 parent baa9f53 commit b03a05e

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

src/wp-admin/css/customize-controls.css

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ body {
7070

7171
#customize-save-button-wrapper {
7272
float: right;
73-
margin-top: 3px; /* Vertically center 40px button in 45px header */
73+
margin-top: 7px; /* Vertically center 32px button in 45px header */
7474
}
7575

7676
body:not(.ready) #customize-save-button-wrapper .save {
@@ -3000,9 +3000,8 @@ body.adding-widget .add-new-widget:before,
30003000
}
30013001

30023002
.wp-core-ui.wp-customizer .button {
3003-
min-height: 30px;
30043003
padding: 0 14px;
3005-
line-height: 2;
3004+
line-height: 2.14285714; /* 30px */
30063005
font-size: 14px;
30073006
vertical-align: middle;
30083007
}

src/wp-admin/customize.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,13 +198,13 @@
198198
<?php if ( $compatible_wp && $compatible_php ) : ?>
199199
<?php $save_text = $wp_customize->is_theme_active() ? __( 'Publish' ) : __( 'Activate &amp; Publish' ); ?>
200200
<div id="customize-save-button-wrapper" class="customize-save-button-wrapper" >
201-
<?php submit_button( $save_text, 'primary save', 'save', false ); ?>
202-
<button id="publish-settings" class="publish-settings button-primary button dashicons dashicons-admin-generic" aria-label="<?php esc_attr_e( 'Publish Settings' ); ?>" aria-expanded="false" disabled></button>
201+
<?php submit_button( $save_text, 'primary button-compact save', 'save', false ); ?>
202+
<button id="publish-settings" class="publish-settings button-primary button-compact button dashicons dashicons-admin-generic" aria-label="<?php esc_attr_e( 'Publish Settings' ); ?>" aria-expanded="false" disabled></button>
203203
</div>
204204
<?php else : ?>
205205
<?php $save_text = _x( 'Cannot Activate', 'theme' ); ?>
206206
<div id="customize-save-button-wrapper" class="customize-save-button-wrapper disabled" >
207-
<button class="button button-primary disabled" aria-label="<?php esc_attr_e( 'Publish Settings' ); ?>" aria-expanded="false" disabled><?php echo $save_text; ?></button>
207+
<button class="button button-primary button-compact disabled" aria-label="<?php esc_attr_e( 'Publish Settings' ); ?>" aria-expanded="false" disabled><?php echo $save_text; ?></button>
208208
</div>
209209
<?php endif; ?>
210210
<span class="spinner"></span>

0 commit comments

Comments
 (0)