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

feat: scroll active sidebar link into view on page load #3654

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

BobbieGoede
Copy link

I find myself searching in the sidebar in the VueUse docs for related composables, the current page link is often out of view in the sidebar.

Not too happy with my solution in VPSidebar.vue, I guess this won't scroll the relevant link into view when navigating using in page links, also not sure if querySelector is the appropriate way to find the relevant link. Should a router hook be used instead?

I can add tests to confirm the changes work as expected, let me know if changes should be made!

@brc-dd brc-dd self-assigned this Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Keep aside marker visible
2 participants