reactjs / react.dev

The React documentation website
https://react.dev/
Creative Commons Attribution 4.0 International
11.07k stars 7.55k forks source link

[Suggestion]: items in the sidebar tree should collapse on clicking. #7075

Closed Jay-Karia closed 3 months ago

Jay-Karia commented 3 months ago

Summary

After an item in the sidebar is expanded, the usual or common behaviour would be to collapse after clicking it again, which does not seem to happen here.

Page

https://react.dev/reference/react

Details

My suggestion would be to collapse the sidebar item after clicking it when it is expanded.

sk-saurabh-kumar commented 3 months ago

Hey @Jay-Karia, are you going to implement this one or should I do it?

Jay-Karia commented 3 months ago

@sk-saurabh-kumar go ahead.

eugene4545 commented 3 months ago

hey I would love to work on this issue if its still open

Jay-Karia commented 3 months ago

Yes, it's open

harish-sethuraman commented 3 months ago

The navbar doesn't collapse on clicking and this is the expected behaviour as per design.

Jay-Karia commented 3 months ago

It's an obvious behavior that a collapsible item should close.

But anyways,..

👍