diff --git a/falcon/_dev/css/theme/custom/components/_buttons.scss b/falcon/_dev/css/theme/custom/components/_buttons.scss index 1e9bf6b..78c8aaa 100644 --- a/falcon/_dev/css/theme/custom/components/_buttons.scss +++ b/falcon/_dev/css/theme/custom/components/_buttons.scss @@ -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 { flex-wrap: nowrap;