Permalink
Browse files

fix(navbar): fixed mobile active state bug

  • Loading branch information...
lara-aigmueller committed Aug 2, 2017
1 parent 1825b92 commit 6c1d5a8a463a2974dcbfac18645e68cf20c3c69b
Showing with 12 additions and 0 deletions.
  1. +4 −0 src/expandable/expandable.scss
  2. +8 −0 src/navbar/navbar.scss
@@ -118,6 +118,10 @@ $includedExpandable: false !default;
content: none;
}
.expandable--nav.is-active .expandable__content {
display: none;
}
.expandable--nav.is-current .expandable__content {
display: flex;
}
View
@@ -148,6 +148,7 @@
align-items: center;
height: $nav-line-height;
padding-left: 8.5rem;
overflow: hidden;
}
.nav__list--primary > .nav__item {
@@ -204,6 +205,13 @@
background-color: $nav-primary-current;
}
@media (min-width: $nav-breakpoint) {
.nav__bar.is-active .nav__list--primary {
background-color: $nav-primary-background;
}
}
/*
* Nav buttongroup:
* Search, CTA, Menu toggle

0 comments on commit 6c1d5a8

Please sign in to comment.