Skip to content

Allow different sections to set the nav to be open or closed by default #863

Closed as not planned

Description

@shainaraskas

Discussed in #656

Originally posted by shainaraskas February 28, 2025
Some of the sidenavs are already very long, even when just H1s are visible (reference, deploy and manage, explore and analyze ...):

image

Some are quite short and could benefit from being open (manage data)

image

Propose being able to set an "expanded" / "collapsed" option for each section, which controls whether the H1s are open by default (and, as an extension of this, allow for collapse at H1)




Further requested by @florent-leborgne:

can we collapse the [release notes] TOC by default (for 2 reasons: 1/ have people click on the main page first for the one they want to open, because with the current layout titles look like 'just titles' rather than also pages with content, and 2/ because there are many entries, it's a long scroll for a TOC. ...

https://elastic.slack.com/archives/C05PP2LEC1X/p1743073019439909

Activity

  1. shainaraskas commented on Apr 1, 2025

    @shainaraskas
    MemberAuthor

    closing in favor of #899

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions