Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/wp-admin/css/customize-controls.css
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ body {

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

body:not(.ready) #customize-save-button-wrapper .save {
Expand Down
6 changes: 3 additions & 3 deletions src/wp-admin/customize.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,13 +198,13 @@
<?php if ( $compatible_wp && $compatible_php ) : ?>
<?php $save_text = $wp_customize->is_theme_active() ? __( 'Publish' ) : __( 'Activate &amp; Publish' ); ?>
<div id="customize-save-button-wrapper" class="customize-save-button-wrapper" >
<?php submit_button( $save_text, 'primary save', 'save', false ); ?>
<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>
<?php submit_button( $save_text, 'primary button-compact save', 'save', false ); ?>
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the get_submit_button() function supports compact variations in the future, we can change button-compact to compact. See https://core.trac.wordpress.org/ticket/64892

<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>
</div>
<?php else : ?>
<?php $save_text = _x( 'Cannot Activate', 'theme' ); ?>
<div id="customize-save-button-wrapper" class="customize-save-button-wrapper disabled" >
<button class="button button-primary disabled" aria-label="<?php esc_attr_e( 'Publish Settings' ); ?>" aria-expanded="false" disabled><?php echo $save_text; ?></button>
<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>
</div>
<?php endif; ?>
<span class="spinner"></span>
Expand Down
Loading