From: Ian Walter Date: Sat, 20 Oct 2018 19:12:33 +0000 (-0400) Subject: Fix #26372: disabled btn hover issue (#27407) X-Git-Tag: v4.2.0~221 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=871a51a54827a5ccfbbc469fef6b08f7c2641a44;p=thirdparty%2Fbootstrap.git 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. --- 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,