mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-03-29 02:30:23 +00:00
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.
This commit is contained in:
parent
c5eb6043d8
commit
871a51a548
1 changed files with 4 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue