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

Make navigation sticky #110

Merged
merged 1 commit into from
Jun 29, 2021
Merged

Make navigation sticky #110

merged 1 commit into from
Jun 29, 2021

Conversation

DanielSwain
Copy link
Contributor

No description provided.

@tbrlpld tbrlpld linked an issue Jun 25, 2021 that may be closed by this pull request
@tbrlpld tbrlpld added the enhancement New feature or request label Jun 25, 2021
@tbrlpld
Copy link
Collaborator

tbrlpld commented Jun 25, 2021

Question: How does this behave on small screens (when the menu is collapsed normally and has to be expanded)?

@DanielSwain
Copy link
Contributor Author

DanielSwain commented Jun 26, 2021

@tbrlpld To answer your question, I've checked using the developer tools in the browser, and it behaves fine. On smaller devices where the mobile menu appears, the navigation starts out at the top, and you can scroll down the page past the navigation and through the page content. To summarize, the behavior of the navigation on smaller devices (at both orientations) is exactly the same with or without the sticky-top class requested in the PR.

@DanielSwain
Copy link
Contributor Author

@tbrlpld Anything more needed from me in order to have this PR approved?

@tbrlpld
Copy link
Collaborator

tbrlpld commented Jun 29, 2021

@DanielSwain Looks good to me (just tried it locally)

@tbrlpld tbrlpld merged commit b6f35d5 into wagtail:main Jun 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sticky main navigation (on the left)
2 participants