1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-23 18:40:03 +00:00

Darken outline hover color to match default button hover (#24150)

* Fix Issue #24144

Alter button-outline-variant mixin to darken hover and active background in same fashion as filled button.

* Fix Issue #24144

Filled button on hover should utilize the same color-yiq mixin so that theme buttons match

* default values, fix mixin
This commit is contained in:
afholderman 2017-11-24 18:42:40 -06:00 committed by Mark Otto
parent 02e4f6e513
commit 7c10068c76

View File

@ -51,16 +51,16 @@
} }
} }
@mixin button-outline-variant($color, $color-hover: #fff) { @mixin button-outline-variant($color, $color-hover: #fff, $active-background: $color, $active-border: $color) {
color: $color; color: $color;
background-color: transparent; background-color: transparent;
background-image: none; background-image: none;
border-color: $color; border-color: $color;
@include hover { &:hover {
color: $color-hover; color: color-yiq($color);
background-color: $color; background-color: $active-background;
border-color: $color; border-color: $active-border;
} }
&:focus, &:focus,
@ -77,9 +77,9 @@
&:not([disabled]):not(.disabled):active, &:not([disabled]):not(.disabled):active,
&:not([disabled]):not(.disabled).active, &:not([disabled]):not(.disabled).active,
.show > &.dropdown-toggle { .show > &.dropdown-toggle {
color: $color-hover; color: color-yiq($color-hover);
background-color: $color; background-color: $active-background;
border-color: $color; border-color: $active-border;
// Avoid using mixin so we can pass custom focus shadow properly // Avoid using mixin so we can pass custom focus shadow properly
box-shadow: 0 0 0 $btn-focus-width rgba($color, .5); box-shadow: 0 0 0 $btn-focus-width rgba($color, .5);
} }