Reputation: 5177
The active nav pills by default have primary
color. How can I elegantly apply info
color?
<nav className="nav flex-column nav-pills">
<a className="nav-link active" href="#">Dashboard</a>
<a className="nav-link" href="#">Apps</a>
</nav>
This is is how the nav bar looks.
I want the color of active pill to be info
Upvotes: 0
Views: 172
Reputation: 362300
You can reference the info
CSS variable like this...
.nav-pills .nav-link.active {
background-color: var(--info);
}
Or, using SASS...
@import "bootstrap/functions";
@import "bootstrap/variables";
$nav-pills-link-active-bg: theme-color("info");
@import "bootstrap";
Upvotes: 1