Site Alert

A site alert communicates urgent sitewide information.

We recommend being conservative in your use of this component, as it will cause the page to shift when it is loaded in, and frequent users may experience "banner blindness" if it is consistently present.

This component is based on USWDS.

Example:

How to Author:

The alert element may be global, and will be shared across all pages on your site. It's setup is therefore a bit different.

Configuration

  1. Create a document called "alert" at the root of your project.

  2. In the "alert" document, add the following metadata:

    1. Robots: noindex, nofollow
    2. hide-breadcrumb: yes
  3. In the "metadata" sheet also at the root of your project, add a column, "alert" for the appropriate "URL" row (e.g. URL: "**" and alert: "/alert")

Content Population

If you do not have any need for an alert, no need to populate anything in this file until such time that it is needed; you can set this page up and leave it blank (with just metadata).  Once it is needed, in the DA menu, go to Library > Blocks > Alert > and choose the appropriate block for your use-case.

See In-Page Alert for Options