I’m trying to make the badge applied to a button in the navbar to change colour, not just when the badge is hovered, but also when the button it’s connected to is hovered.
If you look at the last item in the menu, the “Availability” button, you’ll see a badge applied to it. When you hover the button, the button changes colour. I’m trying to get the badge also to change colour when the button is hovered.
I’ve used the CSS below, and it’s working when the badge is hovered but not the button.
.badge:hover {
background: #0895CB !important;
}
I’ve tried add a class to the button and applying the CSS that way, but failed to get it to work. Any clever people out there able or help?
@elixirgraphics I’ve added this to Github as a request, also to have the ability to change the badge colour when the page it’s linked to is active. I’ve done this on the site above using CSS, but it’d cool to have it as a feature.