Alerts
Example of a informative body notification. Non-urgent information for the user with no requirement for action.
Example of a warning body alert. Events which may affect the performance of the application.
Example of a success body notification. Non-critical events that the user may want to attend to. Not time-sensitive, no specific requirement for action.
Example of a error alert. Critical events requiring action from the user in order to use the application effectively or at all.
Informative Alerts
To provide users with additional context or helpful details without requiring immediate action.
How to Use
- Use a blue alert box, positioned near the relevant information or at the top of the page.
- Keep the message concise, focusing on supplementary details or guidance.
- Use when you want to provide users with additional context, tips, or general information that enhances their experience or clarifies their options.
- These alerts should not require immediate user action and should be used sparingly to avoid overwhelming users.
- Position them in areas where users are most likely to need additional information, such as next to a relevant field or feature.
Example Message
"Your form will automatically save every 5 minutes."
When Not to Use
Avoid using information alerts to communicate errors or issues requiring immediate resolution.
Warning Alerts
To notify the user of a potential issue that needs their attention but does not prevent further action
How to Use
- Use when there is a potential issue that could cause problems but does not immediately prevent the user from continuing.
- Ideal for situations where users need to be cautious or when there is a risk that they might lose unsaved changes.
- Position these alerts prominently but ensure they do not obstruct the user’s current task.
- Include a clear message explaining the issue and what action needs to be taken.
Example Message
"You have unsaved changes. Make sure to save your work before leaving the page."
When Not to Use
Do not use warning alerts to communicate information that is not actionable or critical.
Success Alerts
To confirm that a user’s action was completed successfully.
How to Use
- Display a green alert box either near the relevant element or at the top of the page.
- Keep the message brief and to the point, celebrating the successful action.
- Use when you want to confirm that a user action has been completed successfully, such as submitting a form, saving a file, or completing a transaction.
- Keep these alerts brief, positive, and visually distinct, using green or another color associated with success.
- Position them near the element or area where the action took place or at the top of the page if the success is significant and affects the entire page.
Example Message
"Your profile has been successfully updated."
When Not to Use
Do not use success alerts to give information about a next step or required action—this can be confusing.
Error Alerts
To inform users of mistakes or issues that prevent them from completing an action.
How to Use
- Show a red alert next to the relevant field or at the top of the page.
- Include a specific message explaining the error and how to correct it.
- Ensure the error message is clearly linked to the field it refers to, using a red border or highlight.
- Do not clear any fields when displaying error messages to comply with accessibility guidelines.
- Use hidden text, such as "Error:", to assist screen reader users.
- Use when there is a critical issue that prevents the user from proceeding, such as a form validation error or missing required information.
- Place the alert near the relevant field and provide a clear, specific message that helps the user understand the problem and how to fix it.
Example Message
- Field-specific error: "Enter your first name."
- Validation error: "The date you entered must be in the past."
When Not to Use
Avoid using error alerts to notify the user of problems beyond their control (e.g., server issues, eligibility requirements). Instead, guide them to a page that explains the issue.