Banners provide global or system-level messages on the status of an application or site. They provide updates from low to critical priority and often include a follow-up action for the user.


Also known as: Status alert, global status message, informational notice, site notice.

Anatomy

Warning banner with callout A indicating the required icon, callout B indicating the optional title, callout C indicating the required message, callout D indicating the optional close icon button, and callout E indicating the optional button and link.

A. Icon (required): Visual indicator communicating the urgency of the banner.
B. Title (optional): Brief text summarizing the purpose of the banner.
C. Message (required): Descriptive message detailing important contextual information.
D. Close icon button (optional): Optional action allowing users to dismiss a banner without completing a call to action.
E. Button and link (optional): Text button or link that prompts an action or directs users to relevant resources.

Usage

When to use different types of banners
Component When to use When not to use
InformationalFor system-level feedback or status messages that require the user’s attention without disrupting their workflow or requiring immediate action.For informational messages that are of high enough priority to disrupt the user’s workflow, even though they may not require immediate action. Use a Dialog instead.

For low-priority status updates contextually relevant to the user’s current workflow. Use a Section message instead.

For low-priority messages that don’t require user action or attention. Use a Flag instead.
SuccessSuccess banners are not a common use case as they require more attention than needed for low-priority messages. For system- or section-level success, messages including on-page event confirmations. Use a Flag instead.

If the user is taken to a success page on submit. Don’t a messaging component in this case.
WarningFor medium-priority warning messages that require the user’s attention and may or may not require action immediately or in the near future.For medium-priority messages that are of high enough priority to disrupt the user’s workflow. Use a Dialog instead.

For warnings contextually relevant to a section of a page or workflow. Use a Section message instead.

For low-priority warnings that don’t require user action or attention. Use a Flag instead.
ErrorFor high-priority, system-level messages alerting that errors or issues have occurred that require immediate action or attention.For high-priority alerts communicating that critical errors have occurred and must be fixed before continuing. Use a Dialog instead.

For high-priority errors contextually relevant to a section of a page or workflow. Use a Section message instead.

Best practices

  • Visit Button to learn about best practices for alignment, order, and language for calls to action.
  • Visit Feedback and status to learn how to use messaging components, understand their level of disruption, and choose the appropriate messaging component for your context.
A banner fixed at the top of the screen and below the navigation bar

Do Fix banners at the top of the screen below the navigation bar.

A banner placed in the middle of the screen, emphasizes don't place banners anywhere else on the page

Don't Place banners anywhere else on the page.

A banner spanning full page width, emphasizes enhance visibility and maintain consistent layout flow

Do Extend banners across margins to enhance visibility and maintain consistent layout flow.

A banner that is not spanning full screen width, emphasizes reduce visibility

Don't Fit banners within the page layout to, as this may reduce visibility.

Behaviors

Dismissal

In general, users should be allowed to dismiss banners using a close icon button or text button. Banners should also dismiss when users complete an associated action, such as correcting an error. Avoid using timed auto-dismissal for banners, as they may disappear before screen readers finish announcing the text.

An error banner with a message 'An error occurred with your upload.', a button labeled 'Try again', and a close icon button

Do Use either a close button or a close icon button, and implement them consistently across your experience.

An error banner with a message 'An error occurred with your upload.', a button labeled 'Try again', close icon, and close button

Don't Combine close buttons with close icons or alternate between them in your experience.

An error banner titled 'Database connection failure', with a message 'Please check your database server or contact your system administrator.', a button labeled 'Check server', and no option to close it

Do Omit a close button or icon for critical banners that require immediate action, but do so sparingly.

An error banner titled 'Database connection failure', with a message 'Please check your database server or contact your system administrator.', and no option to close it

Don't Omit close buttons unless there’s a clear action the user can take to resolve the issue.

One banner displayed at a time

Do Display one banner at a time.

Multiple banners displayed at once

Don't Stack multiple banners, as they may overwhelm users.

Display methods

There are two primary methods for displaying banners: Scrolling with page content (recommended) or floating over page content. Floating banners are more disruptive and should only be used for high-priority messages.

Scrolls with page (recommended)

Banners that scroll with page content are fixed below the navigation bar and remain there as users scroll. This is the least disruptive way to implement banners.

Banner scrolls with page content
  • Place these banners within page content below the navigation bar.
  • Use these banners for low and medium-priority messages without disrupting the flow of content.

Floats above page content

Floating banners float over page content. They remain in view when users scroll but may obstruct important interactive controls.

Banner floating above page content
  • Reserve floating banners for high-priority messages that require immediate attention.
  • Always float banners on mobile screens for accessibility reasons. Visit Platform considerations for more info.

Animation

Banners may use animated graphics. When animated, banners appear by sliding downwards from the top of the page and reverse when dismissed.

Banner animates downward on appearance
  • Ensure animations are brief, subtle, and unobtrusive.
  • Use animations consistently for all banners in your experience.

Content

  • Learn how to craft content for messaging components, like banners, visit Messaging.
  • Follow guidelines for Link and Button components when labeling actions and destinations within banners.

Platform considerations

Mobile

Banners are available in both web and mobile and should be implemented similarly across platforms.

  • Always float banners on mobile screens. This ensures they remain visible if users zoom or navigate non-linearly.
An informational banner with a message 'Time zone changed to match current location. Edit this in settings.', a 'Go to settings' button, and a button link close option

Do Use buttons or links to dismiss banners.

An informational banner with a message 'Time zone changed to match current location. Edit this in settings.' and a close icon

Don't Only use a close icon in mobile banners.