Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
NathanD-GDS opened this issue Jun 21, 2023 · 1 comment

Comments

@NathanD-GDS
Copy link

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.

@NathanD-GDS
Copy link
Author

We are looking at investigating this within GOV.UK Pay' stroopwafel team.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant