-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
The scroll bar will move to the top every time the sidebar is clicked #8998
Comments
Hi @tyj-321 ! This is normal behaviour for multi-page sites, unfortunately! 😄 You can see it in other docs sites that are not JavaScript apps, too. It's not a bug, though we have been discussing whether this is something we can and should change in Starlight. There are some annoying edge cases to figure out, and we were surprised it's really not as easy to ensure that this is good behaviour for everyone in all the different ways people are using their sidebars (collapsed or not, scrolled or not, on a page that doesn't even have a sidebar entry or not...) So I'm going to close this because it's not a bug! We're just deciding on the behaviour we want. You can view the open draft PR we've been working on (and finding out just how difficult it is to find a sensible solution) and participate in the Starlight Discussion there! |
I understand. Thank you for your patient answer ❤ |
📝 Issue Description
in the sidebar, when I click on a lower menu, the scroll bar will move to the top, so I need to scroll down again
📋 On which page(s) it occurs
https://docs.astro.build/en/guides/styling/
and other lower menus
🤔 Expected Behavior
when I click the menu, the scroll bar will not move to the top
👀 Current Behavior
when I click the menu, the scroll bar will move to the top
🖥️ Browser
chrome 127.0.6533.72
📄 Additional Information
No response
The text was updated successfully, but these errors were encountered: