]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix #26372: disabled btn hover issue (#27407)
authorIan Walter <public@iankwalter.com>
Sat, 20 Oct 2018 19:12:33 +0000 (15:12 -0400)
committerXhmikosR <xhmikosr@gmail.com>
Sat, 20 Oct 2018 19:12:33 +0000 (22:12 +0300)
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

index 646f473b3db689244476808ebb2b7229960aac52..6e9e92290874da10b262921ed13b4d3b3feb4726 100644 (file)
     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,