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

USWDS-Site - Test: In-page nav scroll to nested headers #2978

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mejiaj
Copy link
Contributor

@mejiaj mejiaj commented Nov 20, 2024

Summary

Testing uswds/uswds#5878.

Preview link

Utilities margin and padding →

Original error was reproducible on this page. The margin and padding links weren't scrolling to correct section.

Before After
live → preview →

Testing and review

Ensure bug is fixed

  1. Visit Margin and Padding utils
  2. Navigate to different links in in-page navigation component
  3. In in-page nav click on Margin and ensure you're taken to that section
  4. In in-page nav click on Padding and ensure that link works

Confirm there aren't regressions

Visit other pages like Design tokens or Component pages and click around the in-page nav to make sure there aren't regressions.

@@ -15,7 +15,7 @@
<div class="usa-in-page-nav-container">
<aside class="usa-in-page-nav"
aria-label="On this page"
data-scroll-offset="-120"
Copy link
Contributor Author

@mejiaj mejiaj Nov 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tip

Chore: To avoid regressions on site we'll need to make this change when feature gets merged. We can cherry pick 256c565.

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

Successfully merging this pull request may close these issues.

1 participant