]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Darken outline hover color to match default button hover (#24150)
authorafholderman <afholderman@gmail.com>
Sat, 25 Nov 2017 00:42:40 +0000 (18:42 -0600)
committerMark Otto <markd.otto@gmail.com>
Sat, 25 Nov 2017 00:42:40 +0000 (16:42 -0800)
* 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

scss/mixins/_buttons.scss

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