Skip to content

Conversation

Zaki-Mohd
Copy link

Summary

This PR addresses Bug #4808. The navigation sidebar now automatically closes when a user selects an item while the sidebar is in a collapsible state.

What was done

  • Added an event listener for navigation item selection.
  • Triggered sidebar collapse programmatically on selection.
  • Verified locally on Node 22 + Yarn 4; sidebar closes correctly after item selection.

Related issue

Fixes #4808

Testing

  • Confirmed sidebar closes after selection.
  • HMR and other sidebar behaviors remain functional.

Notes

No changes to wider-screen behavior; the fix only applies when the sidebar is collapsible.

@patternfly-build
Copy link
Contributor

Preview: https://pf-org--pr-4814-site.surge.sh

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.

Bug - Navigation sidebar doesn't close when item is selected

2 participants