How to update Bootstrap’s navbar dropdown item background (blue by default)

This maybe the simplest update, but if you don’t know where to look at, can take you several minutes.

When developing you have your own color scheme and this nav-item dropdown is a little bit tricky to update if you’re new to Bootstrap.

See below CSS to override this class:

// CSS
.dropdown-item:active {
  background-color: transparent;
}

Put this below the Bootstrap CSS and done!

Leave a comment

Your email address will not be published. Required fields are marked *