Skip to content

Navigation menu highlight disappears when scrolling to the next heading #236

@NathanD-GDS

Description

@NathanD-GDS

What should change

At the moment, the left-hand navigation menu displays a page's H2 headings. It highlights the heading you are currently looking at. For example, this H2 in the Pay documentation.

However, when you scroll to a non-H2 heading, the highlight in the navigation menu disappears. The highlight only reappears when you reach the next H2.

Expected behaviour should be that the highlight remains even if you have hit another heading lower in the heading hierarchy, as they were 'contained' within the previous heading.

User need

This issue came up with a couple of developers during research for GOV.UK Pay's recurring payments work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions