Skip to content

Commit 4419c01

Browse files
committed
Admin: Miscellaneous reskin color and alignment fixes.
Fix a few miscellaneous colors and alignment shifts missed in previous updates. Apply the new admin link and button colors on missed cases in the customizer, classic widgets, skip links, help and screen options, and admin nav menus. Props joedolson, fabiankaegy. Fixes #64652. git-svn-id: https://develop.svn.wordpress.org/trunk@61682 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 0b87a0f commit 4419c01

6 files changed

Lines changed: 19 additions & 16 deletions

File tree

src/wp-admin/css/common.css

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -155,17 +155,17 @@
155155
font-weight: 600;
156156
padding: 15px 23px 14px;
157157
/* Background and color set to prevent false positives in automated accessibility tests. */
158-
background: #f0f0f1;
159-
color: #2271b1;
158+
background: #ffffff;
159+
color: var(--wp-admin-theme-color, #3858e9);
160160
z-index: 100000;
161161
line-height: normal;
162162
}
163163

164164
.screen-reader-shortcut:focus {
165165
top: -25px;
166166
/* Overrides a:focus in the admin. See ticket #56789. */
167-
color: #2271b1;
168-
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
167+
color: var(--wp-admin-theme-color, #3858e9);
168+
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
169169
text-decoration: none;
170170
/* Only visible in Windows High Contrast mode */
171171
outline: 2px solid transparent;
@@ -1894,8 +1894,8 @@ p.auto-update-status {
18941894
}
18951895

18961896
#screen-meta-links .show-settings:focus {
1897-
border-color: #2271b1;
1898-
box-shadow: 0 0 0 1px #2271b1;
1897+
border-color: var(--wp-admin-theme-color, #3858e9);
1898+
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
18991899
/* Only visible in Windows High Contrast mode */
19001900
outline: 2px solid transparent;
19011901
}
@@ -3445,7 +3445,7 @@ img {
34453445
/* Reset default focus style. */
34463446
box-shadow: none;
34473447
/* Use an inset outline instead, so it's visible also over the current file item. */
3448-
outline: 2px solid #2271b1;
3448+
outline: 2px solid var(--wp-admin-theme-color, #3858e9);
34493449
outline-offset: -2px;
34503450
}
34513451

src/wp-admin/css/nav-menus.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,6 @@ input.bulk-select-switcher:focus + .bulk-select-button-label {
221221

222222
.menu-settings-group {
223223
margin: 0 0 10px;
224-
overflow: hidden;
225224
padding-left: 20%;
226225
}
227226

src/wp-admin/css/widgets.css

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,12 @@ div#widgets-right .closed .widgets-sortables {
582582
padding: 0 15px;
583583
}
584584

585+
.widget-control-actions {
586+
display: flex;
587+
align-items: center;
588+
justify-content: space-between;
589+
}
590+
585591
.editwidget .widget-control-actions {
586592
margin-top: 20px;
587593
}
@@ -724,7 +730,7 @@ div#widgets-right .widget-top:hover,
724730
}
725731

726732
.widgets-chooser .widgets-chooser-selected .widgets-chooser-button {
727-
background: #2271b1;
733+
background: var(--wp-admin-theme-color, #3858e9);
728734
color: #fff;
729735
}
730736

src/wp-admin/includes/widgets.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,6 @@ function wp_widget_control( $sidebar_args ) {
303303
<?php submit_button( __( 'Save' ), 'primary widget-control-save right', 'savewidget', false, array( 'id' => 'widget-' . esc_attr( $id_format ) . '-savewidget' ) ); ?>
304304
<span class="spinner"></span>
305305
</div>
306-
<br class="clear" />
307306
</div>
308307
<?php echo $after_form; ?>
309308
</div>

src/wp-admin/widgets-form.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@
343343
</div>
344344

345345
<div class="widget-control-actions">
346-
<div class="alignleft">
346+
<div class="left-actions">
347347
<?php if ( ! isset( $_GET['addnew'] ) ) : ?>
348348
<input type="submit" name="removewidget" id="removewidget" class="button-link button-link-delete widget-control-remove" value="<?php esc_attr_e( 'Delete' ); ?>" />
349349
<span class="widget-control-close-wrapper">
@@ -353,14 +353,13 @@
353353
<a href="widgets.php" class="button-link widget-control-close"><?php _e( 'Cancel' ); ?></a>
354354
<?php endif; ?>
355355
</div>
356-
<div class="alignright">
356+
<div class="right-actions">
357357
<?php submit_button( __( 'Save Widget' ), 'primary alignright', 'savewidget', false ); ?>
358358
<input type="hidden" name="widget-id" class="widget-id" value="<?php echo esc_attr( $widget_id ); ?>" />
359359
<input type="hidden" name="id_base" class="id_base" value="<?php echo esc_attr( $id_base ); ?>" />
360360
<input type="hidden" name="multi_number" class="multi_number" value="<?php echo esc_attr( $multi_number ); ?>" />
361361
<?php wp_nonce_field( "save-delete-widget-$widget_id" ); ?>
362362
</div>
363-
<br class="clear" />
364363
</div>
365364

366365
</form>

src/wp-includes/css/customize-preview.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
line-height: 1 !important;
4545
font-size: 18px;
4646
z-index: 5;
47-
background: #3582c4 !important;
47+
background: #3858e9;
4848
border-radius: 50%;
4949
border: 2px solid #fff;
5050
box-shadow: 0 2px 1px rgba(60, 67, 74, 0.15);
@@ -76,11 +76,11 @@
7676
}
7777

7878
.customize-partial-edit-shortcut button:hover {
79-
background: #4f94d4 !important; /* matches primary buttons */
79+
background: #2145e6 !important; /* matches primary buttons */
8080
}
8181

8282
.customize-partial-edit-shortcut button:focus {
83-
box-shadow: 0 0 0 2px #4f94d4;
83+
box-shadow: 0 0 0 1.5px #3858e9;
8484
}
8585

8686
body.customize-partial-edit-shortcuts-shown .customize-partial-edit-shortcut button {

0 commit comments

Comments
 (0)