Skip to content

Commit a0936c3

Browse files
mdoXhmikosR
authored andcommitted
Outline button hover color (#25339)
1 parent b1a7548 commit a0936c3

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

scss/_buttons.scss

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,7 @@ fieldset:disabled a.btn {
6868

6969
@each $color, $value in $theme-colors {
7070
.btn-outline-#{$color} {
71-
@if $color == "light" {
72-
@include button-outline-variant($value, $gray-900);
73-
} @else {
74-
@include button-outline-variant($value, $white);
75-
}
71+
@include button-outline-variant($value);
7672
}
7773
}
7874

scss/mixins/_buttons.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@
5454
}
5555
}
5656

57-
@mixin button-outline-variant($color, $color-hover: #fff, $active-background: $color, $active-border: $color) {
57+
@mixin button-outline-variant($color, $color-hover: color-yiq($color), $active-background: $color, $active-border: $color) {
5858
color: $color;
5959
background-color: transparent;
6060
background-image: none;
6161
border-color: $color;
6262

6363
&:hover {
64-
color: color-yiq($color);
64+
color: $color-hover;
6565
background-color: $active-background;
6666
border-color: $active-border;
6767
}

0 commit comments

Comments
 (0)