mdbootstrap / mdb-ui-kit

Bootstrap 5 & Material Design UI KIT
https://mdbootstrap.com/docs/standard/
Other
24.11k stars 3.53k forks source link

Dropdown menu hover and active colors #368

Closed timhovius closed 9 years ago

timhovius commented 9 years ago

Hello,

The background colors for dropdown menus are incorrect. They are bootstrap-blue.

image

I changed the less by meself, something like this:

.dropdown-menu {
  .active {
    a {
      background-color: transparent;
      color: #333333;
    }

    a:hover {
      background-color: transparent;
      color: #009587;
    }
  }
}
FezVrasta commented 9 years ago

Where are you trying?

Here everything works: http://fezvrasta.github.io/bootstrap-material-design/#navbar

psenechal commented 9 years ago

Try adding the class "active" to one of the

  • tags in the dropdown menu and you'll see what Tim is referring to. It's a common class addition for CMS apps. I'm working in Orchard CMS and it does it as well.

  • timhovius commented 9 years ago

    Yes @psenechal you are right. I use this bundle with KnpMenuBundle. KnpMenuBundle added the class active when the current page matches the route of the dropdown item.