I have just started to create my own theme using SASS and Bootstrap, but I am having problems with an active appearance of an dropdown item inside a navbar. Honestly, I would like to change the hover appaerance as well.
My code looks like this:
<li class="nav-item dropdown">
<NavLink href="#" class="nav-link dropdown-toggle text-nowrap" data-toggle="dropdown">
Admin
</NavLink>
<div class="dropdown-menu bg-customblue1">
<NavLink class="nav-link dropdown-item text-light" href="users">Users</NavLink>
<NavLink class="nav-link dropdown-item text-light" href="roles">Roles</NavLink>
</div>
</li>
I have set the background color of the dropdown (dropdown-menu) according to my new theme (bg-customblue1) and each item to have text-light.
But the question is if there is a nice way involving SASS to get the active and hover appearances to follow that theme?
Thanks!
/Henrik

variables.scssor do you want to overwrite the value externally - then Sass absolutely not required. Nevertheless.dropdown-item.active, .dropdown-item:activeis the selector. - Simplicius