diff options
| author | Ian Walter <[email protected]> | 2018-10-20 15:12:33 -0400 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2018-10-20 22:12:33 +0300 |
| commit | 871a51a54827a5ccfbbc469fef6b08f7c2641a44 (patch) | |
| tree | 6ef49a5a29f2b5fce3738618b7908089f25d71d5 | |
| parent | c5eb6043d81824f281ce5ada6ae77569054c987f (diff) | |
| download | bootstrap-871a51a54827a5ccfbbc469fef6b08f7c2641a44.tar.xz bootstrap-871a51a54827a5ccfbbc469fef6b08f7c2641a44.zip | |
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.
| -rw-r--r-- | scss/mixins/_buttons.scss | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scss/mixins/_buttons.scss b/scss/mixins/_buttons.scss index 646f473b3..6e9e92290 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, |
