I'm using bootstrap 4 for a website I'm building. I am using the bootstrap cards, in these cards I have the primary button (btn-primary). When hovering the card I want to trigger also the hover state of the button. Is there a way to accomplish this?
Can I force an element to display its hover effect? I tried the answer from this url but this doesn't work because the compiler throws an error that btn-primary:hover compound selectors may no longer be extended. It says to consider @extend .btn-primary, :hover. This works but this makes my css file huge because it's extending all kinds of hovers and not specifically for a button.
Is there an another way to trigger the hover state of a bootstrap button while not hovering the button itself?
Scss example I hope to accomplish if it's even possible
.card {
&:hover {
.btn {
//Trigger the hover state of btn primary that is in the card here
}
}
}