Content Navigation: css class "active" set on the wrong link Element
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 142
- Forks
- 230
- PR merge metrics
- No merged PRs in 30d
Description
If you click on the last element in the content nav, sometimes it shows the wrong "active" heading:
**Example**
* Click on "Open WC project generator" link (https://lit.dev/docs/getting-started/#open-wc-project-generator)
* The blue rhombus is shown at "Install locally from npm" nav `
The nav element is ``.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the navigation issue by following the documented steps and inspect the element. Trace how the active class is assigned when selecting the last content-nav link, and verify that the blue indicator marks the clicked heading rather than "Install locally from npm".
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100