Skip to content

Commit

Permalink
fix(docz-theme-default): mobile menu following anchor clicks (#713)
Browse files Browse the repository at this point in the history
whenever a user clicked an anchor link with the mobile menu open it
would cause the mobile menu to re-position itself to half-way off the
page
  • Loading branch information
Glazy authored and pedronauck committed Mar 26, 2019
1 parent d2d181d commit e3bbf1a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const Wrapper = styled.div<WrapperProps>`
@media screen and (max-width: ${breakpoints.desktop - 1}px) {
transform: translateX(${p => (p.opened ? '-100%' : '0')});
position: ${p => (p.opened ? 'auto' : 'fixed')};
}
${get('styles.sidebar')};
Expand Down

0 comments on commit e3bbf1a

Please sign in to comment.