Skip to content

Commit

Permalink
Nav Pills with open dropdown don't reflect the nav-pills active state…
Browse files Browse the repository at this point in the history
…. The active state should also be reflected when using collapse plugin inside nav-pills.
  • Loading branch information
pat270 committed Apr 24, 2017
1 parent ba312c2 commit 3a786c4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions scss/_nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,13 @@
.nav-pills {
.nav-link {
@include border-radius($nav-pills-border-radius);
}

&.active,
.show & {
color: $nav-pills-active-link-color;
background-color: $nav-pills-active-link-bg;
}
.nav-link[aria-expanded="true"],
.nav-link.active,
.nav-item.show .nav-link {
color: $nav-pills-active-link-color;
background-color: $nav-pills-active-link-bg;
}
}

Expand Down

0 comments on commit 3a786c4

Please sign in to comment.