Closed (fixed)
Project:
Navigation
Version:
1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
20 Jul 2023 at 12:36 UTC
Updated:
9 Aug 2023 at 15:19 UTC
Jump to comment: Most recent
The menu IA is really complex, and when you load a new page you loose the context where you where and the sidebar loads the menu closed.
When you load a page, if you are in a place an that is adding the active state/class somewhere it should ideally scroll the sidebar to there, meaning it should be visible on the viewport.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
utkarsh_33 commentedComment #5
lauriiiComment #6
utkarsh_33 commentedComment #8
lauriiiThank you @Utkarsh_33!
Comment #9
mherchelNote this can also be accomplished with https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView, which doesn't require a re-layout operation from
getBoundingClientRect()