Site Banner
Description
The site banner is used to broadcast information across multiple pages.
There are two color options: .site-banner-warning
and .site-banner-info
.
See an example on a mockup page
Definition
It is recommened to use an <aside>
tag to house the content.
The header uses simply a <header>
tag which comes along with
all the correct styling. The body uses the .site-banner-body
class
to get the correct stylings for the content.
A site-wide communication banner appears above the header of a website. It is the first component at the top of the page.
A communication banner can be used in contexts such as:
- Significant changes to the website that we wish to communicate to the site users
- Announcements about the site that can impact user work—like outages, site maintenance, etc.
- Alpha/beta status of the site
- Banner will align to first, left column of grid.
- Banner is not anchored at the top of the screen. When user scrolls, the banner scrolls with page content.
- Content/text will wrap as screen size decreases. No truncation as this is important/critical messaging.
- No dismissible variant. Banner stays on the site as long as back-end implementation stays.
- Link to a page with more details can be added to the banner, which will right align with the last line of the descriptive text.
- Mobile version will display the link below the description text.
Examples
Site banner with header and link
Site banner
Site banner—Full-width
Variables
No custom variables.