Skip to content

Commit

Permalink
Outline button hover color (#25339)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdo authored and XhmikosR committed Jan 17, 2018
1 parent b1a7548 commit a0936c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions scss/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,7 @@ fieldset:disabled a.btn {

@each $color, $value in $theme-colors {
.btn-outline-#{$color} {
@if $color == "light" {
@include button-outline-variant($value, $gray-900);
} @else {
@include button-outline-variant($value, $white);
}
@include button-outline-variant($value);
}
}

Expand Down
4 changes: 2 additions & 2 deletions scss/mixins/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@
}
}

@mixin button-outline-variant($color, $color-hover: #fff, $active-background: $color, $active-border: $color) {
@mixin button-outline-variant($color, $color-hover: color-yiq($color), $active-background: $color, $active-border: $color) {
color: $color;
background-color: transparent;
background-image: none;
border-color: $color;

&:hover {
color: color-yiq($color);
color: $color-hover;
background-color: $active-background;
border-color: $active-border;
}
Expand Down

0 comments on commit a0936c3

Please sign in to comment.