Reusable Designs: Banners & Alerts

Components for designers and developers building user interfaces.

Banners are full-width elements used to grab the user’s attention and display important information.

When to use banners

We have two types of banner: informational and warning

Teal informational banners are used to communicate non-urgent information, such as action items for users or information about changes to services. These banners have a lower urgency, but provide important details warranting its use.

Orange warning banners are used to alert users of outages, development status, building closures, construction, and other urgent information.  These banners may include pressing information about things that could impact a user’s ability to interact with the library.

Guidelines for using banners

Banners should:

  • Use concise, plain language
  • Be no more than two sentences

We built accessibility best practices into our banner so it:

  • Appears on page load and therefore does not use ARIA live region roles.
  • Has screen reader only text to indicate whether the message is informational or a warning.

Relevant WCAG guidelines

Result

Informational

Informational alert

Add your message here.

Warning

Warning alert

Add your message here.

 

Code

Our design system is deeply indebted to the University of Michigan Libraries' Design System.

  • Last Updated: Oct 11, 2024 11:51 AM
  • URL: https://libguides.gvsu.edu/reusabledesigns