Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

Latest commit

 

History

History
77 lines (60 loc) · 2.93 KB

File metadata and controls

77 lines (60 loc) · 2.93 KB
layout component
title Banner - Official Gov
permalink /components/banner/official-gov
has-parent /components/banner/
github-title va-official-gov-banner
figma-link-web https://www.figma.com/file/JDFpGLIojfuQwANXScQjqe/VADS-Component-Example-Library?type=design&node-id=1173%3A5542&mode=design&t=vNilCSI60pQBiKkM-1
intro-text This banner identifies official websites of government organizations in the United States. They also help visitors understand whether a website is official and secure.
web-component va-official-gov-banner
web true
mobile-app false
anchors
anchor
Examples
anchor
Usage
anchor
Code usage
anchor
Accessibility considerations

Examples

Default

{% include storybook-preview.html story="components-va-official-gov-banner--default" link_text="va-official-gov-banner" %}

Internationalization

{% include storybook-preview.html story="components-va-official-gov-banner--internationalization" link_text="va-official-gov-banner internationalization" %}

Usage

USWDS component

This component comes directly from the U.S. Web Design System (USWDS). Thus we follow the guidance and considerations documented in the USWDS for this component. The guidance below augments the USWDS guidance to give specifics on how we use the component at the VA.

When to use Banner - Official Gov

Always. The official government banner should appear on every VA.gov page at the very top of the page.

How to use Banner

Auto-injected. The official government banner is automatically injected onto all VA.gov pages using our content-build process.

Placement

Above header. The official government banner appears directly above the VA.gov header and

Code usage

<va-link-action href="{{ site.storybook_path }}/?path=/docs/components-va-official-gov-banner--docs" text="View Banner - Official Gov guidance in Storybook for use on VA.gov" type="secondary"

<va-link-action href="{{ site.storybook_path }}/?path=/docs/components-va-official-gov-banner--docs" text="View Banner - Official Gov guidance in Storybook for use on VA.gov" type="secondary"

Accessibility considerations