USWDS - Bug: In-Page Navigation scrolling does not work with Summary Box #5255
Labels
Package: In-page navigation
Role: Dev
Development/engineering skills needed
Status: Triage
We're triaging this issue and grooming if necessary
Type: Bug
A problem in the code
Describe the bug
When an h2 or h3 tag is used inside of a Summary Box component, it will appear in the In-page navigation component. Clicking on its corresponding link in the navigation does not scroll to its anchor, but rather scrolls to the top of the page.
Steps to reproduce the bug
main
Expected Behavior
The In-page Navigation component should scroll to a Summary Box anchor when that Summary Box is part of the nav.
Related code
The issue can be seen by visiting https://designsystem.digital.gov/components/summary-box/ and clicking on 'Key information' under On this page.
Screenshots
No response
System setup
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: