From bbe94ef0fdc024726e6082400ca6e110798c7cf1 Mon Sep 17 00:00:00 2001 From: Jake Spurlock Date: Tue, 7 Jul 2020 04:19:38 +0000 Subject: [PATCH] Administration: Ensure that disabled buttons look disabled. This change removes the disabled state from the admin scheme specific styles. Fixes #48709. Props drw158, SergeyBiryukov, afercia, kennethroberson5556, melchoyce, joedolson, valentinbora, audrasjb, larrach, nrqsnchz, youknowriad. git-svn-id: https://develop.svn.wordpress.org/trunk@48360 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/css/colors/_mixins.scss | 10 ---------- src/wp-includes/css/buttons.css | 7 +++---- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/src/wp-admin/css/colors/_mixins.scss b/src/wp-admin/css/colors/_mixins.scss index 4d0c079d1f..9744a20a0e 100644 --- a/src/wp-admin/css/colors/_mixins.scss +++ b/src/wp-admin/css/colors/_mixins.scss @@ -34,14 +34,4 @@ border-color: darken( $button-color, 15% ); box-shadow: inset 0 2px 5px -3px darken( $button-color, 50% ); } - - &[disabled], - &:disabled, - &.button-primary-disabled, - &.disabled { - color: hsl( hue( $button-color ), 10%, 80% ) !important; - background: darken( $button-color, 8% ) !important; - border-color: darken( $button-color, 8% ) !important; - text-shadow: none !important; - } } diff --git a/src/wp-includes/css/buttons.css b/src/wp-includes/css/buttons.css index f955c9f9f5..b505af2053 100644 --- a/src/wp-includes/css/buttons.css +++ b/src/wp-includes/css/buttons.css @@ -181,7 +181,6 @@ TABLE OF CONTENTS: border-color: #ddd !important; background: #f7f7f7 !important; box-shadow: none !important; - text-shadow: 0 1px 0 #fff !important; cursor: default; transform: none !important; } @@ -276,9 +275,9 @@ TABLE OF CONTENTS: .wp-core-ui .button-primary:disabled, .wp-core-ui .button-primary-disabled, .wp-core-ui .button-primary.disabled { - color: #66c6e4 !important; - background: #008ec2 !important; - border-color: #008ec2 !important; + color: #a0a5aa !important; + background: #f7f7f7 !important; + border-color: #ddd !important; box-shadow: none !important; text-shadow: none !important; cursor: default;