- They are often triggered in response to an action by the user.
- Inline alerts are positioned within the area or form they relate to.
- Alerts of high importance (warning or danger) should not close automatically, until the situation has been resolved.
Different states and types
Success alerts should be used when an action was performed successfully.
Info alerts should be used when there are tips or information that a user can benefit from.
Warning alerts should be used for messages that likely require attention.
Danger alerts should be used when the system has failed to perform an action, or when the user has made an error.* Never include a close icon or link to dismiss the action. In cases when alert should be dismissible use warning alert instead.