Recently, I've embarked on the journey of creating my own theme using a combination of SASS and Bootstrap. However, I've hit a little snag when it comes to achieving the desired active appearance for a dropdown item within a navbar. To be completely honest, I wouldn't mind tweaking the hover effect as well.
https://i.stack.imgur.com/KvlBU.png
This is what my code currently looks like:
<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've managed to set the background color of the dropdown (dropdown-menu) in line with my new theme (bg-customblue1), and ensured that each item inherits the text-light styling.
However, I'm wondering if there's an elegant way, possibly incorporating SASS, to align the active and hover appearances with this theme?
Thanks!
/Henrik