[UX/UI] Left sidebar 'Packages' menu unexpectedly expands when visiting 'Changelog' #61205
Unanswered
sayful1411
asked this question in
General
Replies: 1 comment 2 replies
|
Where? |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Description
In Laravel docs, there is an unintended state coupling in the left-hand navigation sidebar. When a user clicks on the Changelog menu link, the correct page loads successfully. However, the sidebar simultaneously forces the Packages dropdown menu to expand, exposing all of its nested submenus.
Visiting the Changelog should leave unrelated parent dropdowns (like Packages) collapsed unless the user explicitly expands them or navigates to a subpage within that section.
Expected Behavior
Clicking and viewing
/docs/changelogshould only highlight the "Changelog" link. Unrelated dropdown blocks, specifically "Packages", should remain collapsed.Actual Behavior
Navigating to the Changelog causes the "Packages" parent container to inherit or trigger an open state class (e.g.,
.expandedor.open), cluttering the left sidebar layout.Proposed Solution
This is likely a route-matching or active-class assignment oversight in the private website repository layout template.
Ensure that the conditional logic rendering the active/expanded state of the "Packages" category strictly matches the package's URL segment patterns (e.g.,
/docs/:version/packages) and does not catch generic standalone pages like/docs/changelog.All reactions