The U.S. Web Design System helps the federal government build fast, accessible, mobile-friendly websites.
6.7k
stars
923
forks
source link
USWDS - Bug: Nav submenu padding decreased unexpectedly in transition from USWDS 2 to 3, looks inconsistent with nav menu buttons #5417
Closed
lpsinger closed 7 months ago
Describe the bug
USWDS 2 had some padding in nav submenus so that the submenu items were visually aligned with the nav menu button itself (see https://github.com/uswds/uswds/blob/v2.13.3/src/stylesheets/components/_navigation.scss#L374). This padding was removed in USWDS 3, and the nav submenus look off.
Steps to reproduce the bug
Expected Behavior
The menu items should be horizontal aligned with the menu button.
Related code
No response
Screenshots
Note the misalignment in this screen shot of the documentation page template:
In my own project (https://gcn.nasa.gov), here is a nav submenu with USWDS 2.13.3:
And with USWDS 3.1.0:
System setup
Additional context
No response
Code of Conduct