Skip to content

Conversation

mejiaj
Copy link
Contributor

@mejiaj mejiaj commented Nov 20, 2023

Summary

Megamenu links align with logo on desktop. Links in both megamenu and extended megamenu now align correctly to the logo at the top.

Breaking change

This is not a breaking change.

Related issue

Closes #5604.

Related issue
#5417

Related to PR

Related pull requests

Related to #5418. This PR adjusts padding for non-megamenu variants.

Changelog entry: TK

Preview link

Preview links:

Problem statement

Megamenu links did not align to logo.

Develop megamenu
image

Develop extended megamenu
image

Solution

Removed padding from first and last column links.

Feature megamenu

image

Feature extended megamenu

image

Major changes

NA

Testing and review

Ensure there are no regressions in any header variant links.

@mejiaj mejiaj marked this pull request as ready for review November 21, 2023 15:36
Copy link
Contributor

@amyleadem amyleadem left a comment

Choose a reason for hiding this comment

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

Looks good to me! I tested the following in Chrome, Firefox, and Safari:

  • Confirm megamenu and extended megamenu content aligns to left and right of usa-navbar content in desktop view
  • Confirm no changes in the mobile view

I’d like to see how this interacts with the changes in #5418. Maybe we can create a feature branch that we can merge both into?

@mejiaj mejiaj changed the base branch from develop to header-nav-link-alignment November 21, 2023 21:45
@mejiaj
Copy link
Contributor Author

mejiaj commented Nov 21, 2023

@amyleadem thanks for the review. I've created the branch header-nav-link-alignment set that as base branch for #5418 and #5630.

Copy link
Contributor

@mahoneycm mahoneycm left a comment

Choose a reason for hiding this comment

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

Lgtm!

@amyleadem amyleadem merged commit 695ade5 into header-nav-link-alignment Nov 30, 2023
@amyleadem amyleadem added this to the uswds 3.7.1 milestone Nov 30, 2023
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.

USWDS - Bug: Adjust alignment in headers with megamenu
3 participants