Skip to content
Discussion options

You must be logged in to vote

I think it's because button-variant uses the tint-color() function.
So ‘white’ is mixed with #fff. And that results in #fff.

If I understand the documentation correctly, you can also simply specify the :hover background.
https://getbootstrap.com/docs/5.3/components/buttons/#sass-mixins

button-variant

  • background
  • border
  • color
  • hover-background
  • hover-border
  • hover-color
  • active-background
  • active-border
  • active-color
  • ...
.btn-white {
  @include button-variant(#ffffff, #ffffff,#222222,#eeeeee);
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@LordBarnhill
Comment options

Answer selected by LordBarnhill
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants