bevyengine / bevyengine/bevy-website

Page TOC sidebar highlight doesn't work when the section content is very long

Open
#1,943 0 comments 0 reactions 0 assignees View on GitHub
A-Book A-News C-Bug C-Webdev S-Ready-For-Implementation
Dominant language
JavaScript
Stars
249
Forks
450
Avg merge
16h 20m
Merged PRs (30d)
6

Description

If a section is very long and no headings are present then the highlight doesn't work. Maybe, the highlight should update only if there is a new section to highlight (keep memory, or update the classes only if there is a change) and keep the old/current one otherwise.

Relevant file: `on-this-page.js`.

https://github.com/user-attachments/assets/b3ddbc66-9a11-4121-a33c-1b776f1df24e

Contributor guide

Open the contributing guide

Research direction

Start by reading on-this-page.js and reproduce the TOC behavior with a very long section that has no headings. The fix is complete when the current sidebar highlight remains active until a new section is available to highlight, rather than disappearing or changing incorrectly.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.