From 8bb2e8e9f7927bfe571545bb4561746f83a54c7b Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Tue, 15 Nov 2016 09:13:21 +0000 Subject: [PATCH] Customize: Ensure edit shortcuts have same background color regardless of theme colors. Fixes #38776. git-svn-id: https://develop.svn.wordpress.org/trunk@39243 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-content/themes/twentyseventeen/inc/color-patterns.php | 3 +-- src/wp-includes/css/customize-preview.css | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/wp-content/themes/twentyseventeen/inc/color-patterns.php b/src/wp-content/themes/twentyseventeen/inc/color-patterns.php index 0a20a035cf..c3913e1e6b 100644 --- a/src/wp-content/themes/twentyseventeen/inc/color-patterns.php +++ b/src/wp-content/themes/twentyseventeen/inc/color-patterns.php @@ -316,8 +316,7 @@ body.colors-custom, .colors-custom .next.page-numbers:focus, .colors-custom .next.page-numbers:hover, .colors-custom .site-content .wp-playlist-light .wp-playlist-item:hover, -.colors-custom .site-content .wp-playlist-light .wp-playlist-item:focus, -.colors-custom .customize-partial-edit-shortcut button { +.colors-custom .site-content .wp-playlist-light .wp-playlist-item:focus { background: hsl( ' . esc_attr( $hue ) . ', ' . esc_attr( $saturation ) . ', 46% ); /* base: #767676; */ } diff --git a/src/wp-includes/css/customize-preview.css b/src/wp-includes/css/customize-preview.css index 259c409314..1a5067ff8b 100644 --- a/src/wp-includes/css/customize-preview.css +++ b/src/wp-includes/css/customize-preview.css @@ -47,8 +47,7 @@ line-height: 1em !important; font-size: 18px; z-index: 5; - background-color: #0085ba; - background: #0085ba; + background: #0085ba !important; -webkit-border-radius: 50%; border-radius: 50%; border: 2px solid #fff; @@ -85,7 +84,7 @@ } .customize-partial-edit-shortcut button:hover { - background: #008ec2; /* matches primary buttons */ + background: #008ec2 !important; /* matches primary buttons */ } .customize-partial-edit-shortcut button:focus {