Skip to main content

Alerts

Alerts notify merchants of important system information, and provide feedback on merchant actions.

A button that's labeled "Add puzzle". Clicking the button displays a dismissible toast component that reads "Puzzle added".

Task alerts

Task alerts are initiated in response to merchant actions during a specific task. Task alerts give merchants direct and immediate feedback.

The following are examples of task alerts:

  • A form is successfully submitted.
  • There's problem uploading something.
  • The information provided is incorrect or doesn't match the requested format.
A dismissible informational banner on top of a page that reads "USPS has updated their rates."

System alerts

System alerts are initiated by the application or system, independent of merchant actions. System alerts provide updates on background system status or out-of-context events that have finished.

The following are examples of system alerts:

  • Lost network connection.
  • A planned upgrade.
  • The app subscription is expiring soon.
The app body within the Shopify admin and the types of alert patterns, which include a dismissible banner for a system alert, (labeled 1), an inline alert for an error, (labeled 2), and a toast, (labeled 3)."

Alert patterns

  1. Banner (system alert)
  2. Inline (task alert)
  3. Toast (task alert)

The following are common patterns available for merchant alerts:

PatternDefinitionDuration and interactionUse to communicate
BannerPage-level alerts, often system relatedorContextual alerts that are specific to a card, section, or modalBanners persist until merchants dismiss them, and can include an action button or link.InformationSuccessWarningError
InlineProvides merchants with feedback that's as close to the source as possibleInline alerts persist until merchants resolve the message.WarningError
ToastShort, temporary messages that slide in and out of a page and provide succinct information.Toast alerts without actions can disappear automatically or merchants can dismiss them.Success

Information

When you use alerts to communicate important information to merchants, you can choose from a few standard patterns.

Informational banner

Use an informational banner with the blue header when you want to convey general information or actions that aren't critical.

An informational banner in blue that reads "Order archived", with the "X" icon for dismissing it. The banner is highlighted in the app body and indicates when the order was archived.

Informational banners should have a blue header and contain only lower priority information that's always dismissible.

A blurred banner with the "X" icon for dismissing it in focus.

Banners should be dismissible unless they contain critical information that merchants need to resolve to move forward. Dismissed banners shouldn't display again within the same user session.

Success

When you're communicating success, it's important to provide feedback. That means using patterns that inform merchants when a task has been completed successfully.

Toast

Toasts inform merchants of a process that the app has performed or will perform. Toasts display temporarily, at the bottom of the interface. Toasts don't require any merchant input to disappear, and they shouldn't interrupt the merchant experience.

A dismissible toast placed in the bottom center of the app screen that reads "Message sent".

Display toasts in the bottom center of your app screen.

A dismissible toast that confirms a "Message sent" action.

Use toasts for only short messages that confirm an action.

A dismissible toast that confirms an "Image deleted" action. The toast provides an "Undo" action.

Make toast messages three words or fewer.

A dismissible toast that confirms a "Template duplicated" action.

Toasts are only for non-critical messages that are relevant at the moment.

A dismissible toast with a generic "Server error" message in red, with an icon.

Avoid toasts for error messages, except for persistent errors such as connection errors. Refer to Polaris toast best practices for more information.

Success banners

Only use success banners when feedback is delayed, persistent, or has a call-to-action (CTA). Otherwise, use toasts.

A dismissible success banner in green that reads "Your puzzle has been created" and contains a "View report" button.

Make success banners green and include next steps, if applicable.

A dismissible success toast in green with no buttons that reads "Message sent".

Avoid using banners to show success messages for actions that merchants have completed. For user-initiated feedback, use success toasts instead.

A dismissible success toast in green with irrelevant content and no call-to-action.

Avoid using success banners if there isn't a CTA.

Warning

When you're communicating warnings to merchants, you have different options based on what's causing the warning.

Warning banners

Use warning banners to display information that needs attention or that merchants need to take action on.

A warning banner in yellow that reads "Your shipping address needs to be updated" and includes a button that's labeled "Update shipping address".

Make warning banners yellow. Seeing these banners can be stressful for merchants, so use them intentionally.

Inline warning in a list

Indicate specific items in a list that you want to make merchants aware of. You can use the Polaris ExceptionList component for this.

A list of customers. One name has an inline warning that reads "2 open orders", with an icon.

Use inline warnings to draw attention to exceptions in a list, and encourage action when possible.

A list of customers. One name has an inline warning that reads "No address provided", with no icon.

Avoid only using color to convey a warning. Pair warning messages with a warning icon. This increases accessibility by providing additional identifiers.

Error

When you're communicating problems and errors, use recognizable patterns that inform merchants of the alert's significance. Put error messages as close to the problem as possible.

Error messages are necessary when something isn't working as expected, or when merchants should be alerted to critical disruptions.

When errors happen, they can be frustrating or even scary. Guide merchants to a solution clearly and quickly.

A dismissible error banner in red that reads "High risk of fraud detected". The banner includes a button that's labeled "View risk analysis".

Make error banners red. Always tell merchants what happened and offer a path forward.

A dismissible error banner in red with an error code that's not human-readable. The language is dramatic, reading "Your puzzle has caused a complete failure of our interjambs systems".

Avoid using scary language, technical terms, and jargon.

A dismissible error banner in red that reads "Oops, we did it again".

Avoid using humor, idioms, or other words and phrases that might not translate correctly.

Critical banners

Use critical banners when you're communicating problems that need to be resolved immediately for merchants to complete a task.

A dismissible critical banner in red that reads "You have reached your template limit". The banner provides a button to upgrade the plan to create more templates.

Make critical banners red and use them sparingly.

A dismissible critical banner in red that explains the issue and offers a way to contact support.

Provide troubleshooting steps and a clear way to get support.

Inline errors in forms

When you're validating form fields like text fields, place the error message directly below the affected field.

Use red for error message text, because it's a common convention outside of Shopify.

A form field filled with an email address that currently has a typo. An error message that explains the specific issue displays underneath the form.

Place error messages directly below the affected field.

An error message that displays while the cursor is still in the form field, before the user has finished typing.

Avoid showing an error while merchants are typing, because it can cause confusion. Wait until the keyboard focus moves away from the field, and then display the error.

Inline errors in lists

Indicate specific items in a list that you want to make merchants aware of. You can use the Polaris ExceptionList component for this.

A list of customers. One name has an inline warning that reads "No address provided", in red, with an icon.

Highlight an exceptional state that encourages merchants to click on a list item. Lead with what went wrong.

A list of customers. One name has an inline warning that reads "Fraudulent charge" in red, with no icon.

Avoid only using color to convey an error. Instead, pair the error message with an error icon. This increases accessibility by providing additional identifiers.

Errors in cards, sections, or modals

If an error applies to a specific card, section, or modal, then place it near the top of the affected element.

A system error that reads "Service outage", with an icon, but it displays as an inline error in a list of recent orders.

Avoid nesting error messages too deeply within your app's hierarchy. If the error applies more broadly, then place it at the top of the affected element.

A dismissible modal that's used to present a "Username not valid" error message.

Avoid using modals to handle error messages. Only place an error message inside a modal if the modal itself is experiencing an error.