From 871a51a54827a5ccfbbc469fef6b08f7c2641a44 Mon Sep 17 00:00:00 2001 From: Ian Walter Date: Sat, 20 Oct 2018 15:12:33 -0400 Subject: [PATCH] Fix #26372: disabled btn hover issue (#27407) When gradients are enabled there is still a hover state on disabled buttons since the hover rules apply to background-image and disabled rules apply to background-color. This applies the logic already present in dropdowns to buttons. This fix was originally proposed by @ysds. --- scss/mixins/_buttons.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scss/mixins/_buttons.scss b/scss/mixins/_buttons.scss index 646f473b3d..6e9e922908 100644 --- a/scss/mixins/_buttons.scss +++ b/scss/mixins/_buttons.scss @@ -31,6 +31,10 @@ color: color-yiq($background); background-color: $background; border-color: $border; + // Remove CSS gradients if they're enabled + @if $enable-gradients { + background-image: none; + } } &:not(:disabled):not(.disabled):active,