mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-17 11:00:56 +02:00
Fix .btn-outline-light hover color
Uses some if/else action to ensure there's readable text on hover. Swapped out a hex value to a variable while I was in there. Fixes #23398, fixes #23351.
This commit is contained in:
@@ -58,7 +58,11 @@ fieldset[disabled] a.btn {
|
|||||||
|
|
||||||
@each $color, $value in $theme-colors {
|
@each $color, $value in $theme-colors {
|
||||||
.btn-outline-#{$color} {
|
.btn-outline-#{$color} {
|
||||||
@include button-outline-variant($value, #fff);
|
@if $color == "light" {
|
||||||
|
@include button-outline-variant($value, $gray-900);
|
||||||
|
} @else {
|
||||||
|
@include button-outline-variant($value, $white);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user