]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Remove hard-coded value in button-outline-variant 20734/head
authorBeau Smith <beau@beausmith.com>
Fri, 16 Sep 2016 20:02:52 +0000 (13:02 -0700)
committerBeau Smith <beau@beausmith.com>
Fri, 16 Sep 2016 20:02:52 +0000 (13:02 -0700)
Fixes #20609

PR #20641, another solution to this issue, hard-codes use of $body-color, which may not be the desired color for the text when hovering.

scss/mixins/_buttons.scss

index 5196ab65e19646aa4a054918b97543db096d127b..853a46bfc5a0ff846c4a99e50558072e180de164 100644 (file)
   }
 }
 
-@mixin button-outline-variant($color) {
+@mixin button-outline-variant($color, $color-hover: #fff) {
   color: $color;
   background-image: none;
   background-color: transparent;
   border-color: $color;
 
   @include hover {
-    color: #fff;
+    color: $color-hover;
     background-color: $color;
         border-color: $color;
   }
 
   &:focus,
   &.focus {
-    color: #fff;
+    color: $color-hover;
     background-color: $color;
         border-color: $color;
   }
   &:active,
   &.active,
   .open > &.dropdown-toggle {
-    color: #fff;
+    color: $color-hover;
     background-color: $color;
         border-color: $color;
 
     &:hover,
     &:focus,
     &.focus {
-      color: #fff;
+      color: $color-hover;
       background-color: darken($color, 17%);
           border-color: darken($color, 25%);
     }