Skip to content

Commit

Permalink
Remove hard-coded value in button-outline-variant
Browse files Browse the repository at this point in the history
Fixes twbs#20609

PR twbs#20641, another solution to this issue, hard-codes use of $body-color, which may not be the desired color for the text when hovering.
  • Loading branch information
beausmith committed Sep 16, 2016
1 parent 6312911 commit 3df78ce
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scss/mixins/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,36 +58,36 @@
}
}

@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%);
}
Expand Down

0 comments on commit 3df78ce

Please sign in to comment.