Skip to content

πŸ› Bug: Table of Contents should highlight active section while scrollingΒ #2169

@Adityakumar37

Description

@Adityakumar37

Describe the bug

Current Behavior

When reading the JSON Schema documentation page, the Table of Contents on the right remains static while the user scrolls through the document.

The currently visible section is not highlighted, which makes it difficult to know where the reader is in the page.

Steps To Reproduce

  1. Go to the JSON Schema website:https://json-schema.org/
  2. Click on Specification from the top navigation bar.
  3. In the left sidebar, under Specification documents, click JSON Schema Core.
  4. Scroll down on the JSON Schema Core page until the Table of Contents appears on the right side.
  5. Continue scrolling through different sections of the document.

Expected Behavior

The active section should automatically be highlighted in the Table of Contents (scroll-spy behavior), so readers can track where they are in the document.

Screenshots

No response

Device Information [optional]

- OS:
- Browser:
- version:

Are you working on this issue?

Yes

Do you think this work might require an [Architectural Decision Record (ADR)]? (significant or noteworthy)

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: TriageThis is the initial status for an issue that requires triage.nice-to-haveThis is not an issue. This is something nice to have.✨ EnhancementIndicates that the issue suggests an improvement or new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions