U.S. flagA digital services project by Flexion

Banner

identityUSWDS-derivedinteractive

Official .gov/.mil banner identifying the site as a government website.

Reference: USWDS documentation ↗

Variants

Default

U.S. flagAn official website of the United States government

Contract

Class mapping

USWDSFlexNotes
usa-banner.flex-bannerOuter banner section
usa-banner__header.flex-banner__headerBanner header with flag and text
usa-banner__inner.flex-banner__innerInner container for header content
usa-banner__button.flex-banner__buttonExpand/collapse button
usa-banner__content.flex-banner__contentExpandable guidance content
usa-banner__guidance.flex-banner__guidance-gov / .flex-banner__guidance-sslGuidance sections for .gov and HTTPS
usa-banner__icon.flex-banner__iconIcon in guidance section

Verified properties

background-colorcolorfont-familyfont-sizeline-height

Intentional differences

background-color: ours = var(--flex-gray-5), USWDS = #f0f0f0

We use semantic token that resolves to the same value

Behavior promises

  • ✓ Button toggles hidden attribute on content panel
  • ✓ Button toggles aria-expanded between true and false
  • ✓ Guidance icons (dot-gov and HTTPS) render as visible images

Source CSS