Skip to content

Site navigation

Readme Changelog

Development stage

1
In research
2
Alpha
3
Beta
4
Production

Alpha components have not been thoroughly tested by developers. Learn more about component maturity.

3.0.4

  • Removed redundant package-lock.json (due to workspaces config in monorepo). This fixes vulnerability in the npm ip package.

3.0.3

  • Fix bug where nav stopped working when GTranslate is present. 985.

3.0.2

  • Different strategy for the Android fix. Looks at prior window.innerWidth, rather than setting a flag. Fixes possible issue with multiple rapidfire calls to resize.

3.0.1

  • Fixed search on Android, addressing issue in #977.

3.0.0

  • Move built CSS to dist folder.

2.1.4

  • Accessibility fix: Use aria-expanded on the button that controls the expansion, add aria-controls to the suggested html to match the id of the expanding element

2.1.3

  • Updated color variables to go inline with new CEILAB color palette

2.1.2

  • Reset navigation on resize

2.1.1

  • Reset navigation on resize

2.1.0

  • Renamed package from ds-dropdown-menu to ds-site-navigation.
  • Changed name of custom element to <cagov-site-navigation>.

2.0.1

  • Add defensive check for mobile search element

2.0.0

  • The JS now contains the CSS
  • Publish to CDN on npm prepublish hook

1.0.16

  • Fixed mobile search button accessiblity (in index.js).

1.0.15

  • Linted and formatted code per root eslint/prettier settings.
  • Removed local eslint/prettier configuration, in favor of repo-wide tooling.
  • Moved husky configuration to work across the entire repo, instead of just this component.

1.0.14

  • Moved @web/test-runner-puppeteer from optionalDependencies to devDependencies.

1.0.13

  • Removed jump effect when opening dropdown menu in mobile by adding top and bottom padding to the :first and :last child. Polished focus outline aesthetics for all menu links. Added left and right 16px padding to the entire menu container to make it consistent with all other components.

1.0.12

  • Modified menu items to fit with or without a drop-down menu. It's now possible to add simple static links in the menu without a dropdown arrow.
  • Aligned all menu items to the left, per latest design direction.

1.0.11

  • Add white background to the navigation container block, so the content under it would not be seen through when scrolled (in case when the sticky header is used)

1.0.10

  • Added right and left padding to the search container in mobile

1.0.9

  • Fixed menu trigger button aria-expanded toggle on JS file. Moved hamburger menu styles to branding component because menu button is part of branding component semantically. Also, added border bottom in mobile requested by our designer, as well as removed margin left from .expanded-menu selector