From 79900f1a98a8be76a2754f56ed02af8d2f62b4bb Mon Sep 17 00:00:00 2001 From: Marton Dinnyes Date: Thu, 26 Jul 2018 10:56:28 +0100 Subject: [PATCH] Make disabled flat button consistent with enabled. While enabled flat (not raised) button has no background, disabled version does which is inconsistent and looks bad. Change adds background for raised disabled buttons only. --- paper-button.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/paper-button.html b/paper-button.html index bce53c7..2be2955 100644 --- a/paper-button.html +++ b/paper-button.html @@ -146,7 +146,6 @@ } :host([disabled]) { - background: #eaeaea; color: #a8a8a8; cursor: auto; pointer-events: none; @@ -154,6 +153,10 @@ @apply --paper-button-disabled; } + :host([disabled][raised]) { + background: #eaeaea; + } + :host([animated]) { @apply --shadow-transition; }