lit / lit/lit.dev

Content Navigation: css class "active" set on the wrong link Element

Open
#505 1 comment 1 reaction 0 assignees View on GitHub

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 `

  • ` link ![image](https://user-images.githubusercontent.com/6592155/133736157-dbb97edd-654c-48f4-91a4-baf9e6598c18.png)

    The nav element is ``.

  • Contributor guide

    Open the contributing guide

    First steps

    1. Read the whole issue, then the project's contributing guide.
    2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
    3. Fork the repository and make your change on a branch.
    4. 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

    Get new issues in your inbox

    A short digest of beginner-friendly GitHub issues.