Section messages offer feedback that is specific to a user’s actions or the status of a particular page section. Rather than applying to the whole site or application, these messages are unique to individual sections and appear near the associated content. They remain visible until the user either engages more or decides to close them.


Also known as: Informational notice, inline message, alert, callout, message bar, notification.

Anatomy

A section message consisting of an icon featured with callout A, a title featured with callout B, a message featured with callout C, a close icon button featured with callout D, and a button featured with callout E.

A. Icon (required): Visual indicator communicating the urgency of the section message.
B. Title (optional): Brief text summarizing the purpose of the section message.
C. Message (required): Descriptive message detailing important contextual information.
D. Close icon button (optional): Icon button used as a close button alternative that allows users to manually dismiss the message.
E. Button and link (optional): Text button or link that prompts an action or providing access to resources relevant to the message.

Usage

When to use and when not to use different types of section messages
Component When to use When not to use
InformationalFor low-priority status updates contextually relevant to the user’s current workflow.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, system-level messages. Use a Banner instead.

For low-priority feedback or status updates that don’t require user action or attention. Use a Flag instead.
SuccessSuccess section messages are not a common use case. For system- or section-level success, including on-page event confirmations. Use a Flag instead.

If the user is taken to a success page on submit. Don’t use a messaging component in this case.
WarningFor medium-priority feedback warning of potential issues within the section. This is the most frequent use case.For high-priority warnings that must be fixed or acknowledged before continuing. Use a Dialog instead.

For medium-priority, system-level messages that require attention but not disruption. Use a Banner instead.

For low-priority warnings that don’t require user action or attention. Use a Flag instead.
ErrorFor high-priority feedback alerting that errors or issues have occurred within the section and must be fixed.For high-priority errors that must be fixed before continuing. Use a Dialog instead.

For high priority, system-level errors that require attention. Use a Banner instead.
SubtleFor low-priority feedback notifying users of tips or more information.For high-priority errors or feedback. Use section messages that denote more critical status instead.

Best practices

  • Ensure section messages do not block interactive elements or content within the page section.
  • 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.
Section message placed at the top of respective section

Do Place section messages at the top of the respective section, immediately below the section title, within the page content.

Section message placed at the top of page

Don't Anchor section messages to the top of a page, as they don’t pertain to all the sections.

Stacked section messages within same section

Do Stack messages within the same section by urgency or importance. This applies to individual sections, not the page.

More than three section messages shown per section

Don't Exceed more than three messages per section and aim for no more than five total messages per page to maintain clarity.

A subtle section message used for less important information.

Do Use subtle section messages as a way to call out information with less visual attention.

A subtle section message used to communicate an error.

Don't Use subtle section message to convey critical information or statuses, like errors or warnings.

Behaviors

Dismissal

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

Section messages shown simultaneously on page load

Do Show all messages simultaneously on page load and allow users to dismiss them at their own pace.

One section message shown at a time with dismissal option

Don't Require users to dismiss messages one at a time before receiving the next one.

Section messages with close buttons

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

Section messages with both close icons and buttons

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

Persistent section message with manual close option

Do Allow users to manually dismiss section messages, ensuring the messages persist until they are dismissed by the user.

Section message that auto-dismisses

Don't Auto-dismiss section messages as it may cause users, including screen readers, to miss crucial information.

Placement

Section messages should be placed at the top of the sections they pertain to, either above or below the section title. Consider screen reader order when choosing a placement method. Whichever you choose, implement it consistently across your experience. 

Content

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