From e3bbf1a53e4d386030a5efe0e155d14b3e72682c Mon Sep 17 00:00:00 2001 From: Luke Glazebrook <8593744+Glazy@users.noreply.github.com> Date: Tue, 26 Mar 2019 21:05:09 +0000 Subject: [PATCH] fix(docz-theme-default): mobile menu following anchor clicks (#713) 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 --- core/docz-theme-default/src/components/shared/Sidebar/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/core/docz-theme-default/src/components/shared/Sidebar/index.tsx b/core/docz-theme-default/src/components/shared/Sidebar/index.tsx index 57a71d270..bde5de7cf 100644 --- a/core/docz-theme-default/src/components/shared/Sidebar/index.tsx +++ b/core/docz-theme-default/src/components/shared/Sidebar/index.tsx @@ -45,6 +45,7 @@ const Wrapper = styled.div` @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')};