Skip to content

Preserve ToC State Across Section Navigation #329

@martyanovandrey

Description

@martyanovandrey

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions