Bookmarks & ScrollSpy
Posted: Sat Mar 28, 2026 7:35 am
I am experimenting with bookmarks in a navigation menu.
I have an anchor top left on my page connected to the HOME button. Other buttons (e.g. ABOUT) are linked to layout grids further down the page. I have ScrollSpy enabled.
By default, HOME is highlighted in my menu. I click on ABOUT.
Expected: ABOUT will now be highlighted and the page will scroll to the ABOUT layout grid, leaving it at the top of the viewport, below my navigation menu.
Observed: ABOUT is highlighted on the menu bar as expected, but the layout grid appears at the bottom of the viewport.
I now click on HOME.
Expected: HOME will now be highlighted and the page will scroll to the anchor at the top of the viewport.
Observed: ABOUT remains highlighted on the menu bar instead of HOME, and the page scrolls back to the top of the viewport, as expected.
This is more about observations at the moment, so I won't provide a demo file. I just want to understand how these things are meant to work.
I have an anchor top left on my page connected to the HOME button. Other buttons (e.g. ABOUT) are linked to layout grids further down the page. I have ScrollSpy enabled.
By default, HOME is highlighted in my menu. I click on ABOUT.
Expected: ABOUT will now be highlighted and the page will scroll to the ABOUT layout grid, leaving it at the top of the viewport, below my navigation menu.
Observed: ABOUT is highlighted on the menu bar as expected, but the layout grid appears at the bottom of the viewport.
I now click on HOME.
Expected: HOME will now be highlighted and the page will scroll to the anchor at the top of the viewport.
Observed: ABOUT remains highlighted on the menu bar instead of HOME, and the page scrolls back to the top of the viewport, as expected.
This is more about observations at the moment, so I won't provide a demo file. I just want to understand how these things are meant to work.