Skip to content

Commit

Permalink
fix: adjust default spacing on new priority nav component + set posit…
Browse files Browse the repository at this point in the history
…ion relative so dropdown is consistently positioned
  • Loading branch information
bolt-bot committed May 25, 2018
1 parent 5e8c7ea commit a1dd991
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/components/bolt-priority-nav/priority-nav.scss
Expand Up @@ -7,6 +7,9 @@

bolt-priority-nav {
display: block;
position: relative;
align-self: center;
padding-bottom: var(--bolt-vspacing);

@supports (display: contents) {
@media screen and (max-width: #{bolt-breakpoint(xsmall)}) {
Expand Down Expand Up @@ -34,7 +37,6 @@ bolt-priority-nav {
}
}

position: relative;

&:not(.is-ready) {
// @TODO: uncomment once themify updates are merged in
Expand Down Expand Up @@ -138,11 +140,15 @@ bolt-priority-nav {
white-space: nowrap;
}

// required so the dropdown can be positioned consistently
.c-bolt-priority-nav__show-more {
position: relative;
}




@supports (display: contents) {
@supports (display: contents) {
.c-bolt-priority-nav__show-more {
@media screen and (max-width: #{bolt-breakpoint(xsmall)}) {
display: contents;
Expand Down

0 comments on commit a1dd991

Please sign in to comment.