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

Improve UX of docs drawer menu #194

Merged
merged 10 commits into from
Jun 10, 2020
Merged

Improve UX of docs drawer menu #194

merged 10 commits into from
Jun 10, 2020

Conversation

sebnitu
Copy link
Owner

@sebnitu sebnitu commented Jun 9, 2020

Problem

The drawer menu can be improved on in terms of both design and UX when you scroll to a component and navigate to it's page but the menu scroll jumps back to the top.

Solution

This PR introduces a StickyScroll module that tracks the scroll position of an element and retains it's position when navigating to a different page. The script also checks that the active menu item is visible and adjusts the scroll position if it's not. Also introduced in this work is an updated drawer menu style to look more like tabs.

@sebnitu sebnitu merged commit 8b5a90c into master Jun 10, 2020
@sebnitu sebnitu deleted the imp-docs-drawer-menu branch June 10, 2020 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant