feat(extra-features): improve outline button text color on hover

This commit is contained in:
2026-03-10 16:49:01 +01:00
parent b208b00259
commit e209ddf5d9

View File

@@ -15,6 +15,28 @@ $btn-color: (
} }
} }
// Configure btn-outline text color on hover per button. (Same thing as above but for btn-outline and only on hover)
$btn-outline-hover: (
"primary": $white,
"secondary": $white,
);
@each $name, $bg in $btn-outline-hover {
$text-color: if(
map-has-key($btn-color, $name),
map-get($btn-color, $name),
$white
);
.btn-outline-#{$name}:hover,
.btn-outline-#{$name}:focus,
.btn-outline-#{$name}:active,
.btn-outline-#{$name}.active,
.show > .btn-outline-#{$name}.dropdown-toggle {
color: $text-color !important;
}
}
// Bootstrap touchspin // Bootstrap touchspin
.bootstrap-touchspin { .bootstrap-touchspin {
flex-wrap: nowrap; flex-wrap: nowrap;