Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve ToC State Across Section Navigation #329

Open
martyanovandrey opened this issue Nov 13, 2024 · 0 comments
Open

Preserve ToC State Across Section Navigation #329

martyanovandrey opened this issue Nov 13, 2024 · 0 comments
Labels
good first issue Good for newcomers

Comments

@martyanovandrey
Copy link
Contributor

The current side navigation (ToC) in the documentation closes all other sections when a user navigates to a specific section, leaving only the selected one open. We need to enhance the ToC component to ensure that the state is preserved, allowing all previously opened sections to remain open when a user navigates to a section.

Screen.Recording.2024-11-13.at.13.00.41.mov

Task:

  • Update the ToC component to maintain the open/close state of sections across navigation.
  • Ensure that multiple sections can be open simultaneously after navigation.
  • Test the updated functionality to confirm state persistence.

Location of the code where changes need to be made:
https://github.com/diplodoc-platform/components/blob/master/src/components/Toc/Toc.tsx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
Status: Todo
Development

No branches or pull requests

1 participant