Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically close sidebar/navigation when clicking a link #42

Open
chrisheninger opened this issue Oct 15, 2018 · 0 comments
Open

Automatically close sidebar/navigation when clicking a link #42

chrisheninger opened this issue Oct 15, 2018 · 0 comments
Labels
bug Something isn't working

Comments

@chrisheninger
Copy link
Contributor

Currently on mobile, when clicking a link from the nav, the sidebar remains open even though the page changes. We need to add something that will close the mobile sidebar/nav when navigating to a new page.

React-Router allows you to wrap everything in a RouteListener component that checks previous location with next location and closes the menu accordingly– I'm willing to bet that Gatsby has a similar way of handling this situation but we'll need to dig in and look it up.

@chrisheninger chrisheninger added the bug Something isn't working label Oct 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant