When to use Alert ?
- Convey to users informations about the page
- For marketing informations
- To notify the user about status of their actions (see notification)
Use cases
Do / Don’t
DO
|
DON’T
|
Ideally, only one alert should be used at a time, and it should be placed in a sufficiently visible place.
|
Don’t overuse the alert component. Don’t mask the content of the page with alerts
|
DO
|
DON’T
|
The alert message must be simple and clear, so that the user knows quickly what is happening.
|
Don’t put too much information in one alert. The number of items included in the alert must not exceed two.
|
DO
|
DON’T
|
Pay attention to the types of alert that can be dismissible. Info’ alerts can be closed because the situation is not critical.
|
Critical alerts, like warning or danger should not be dismissible, the information is important and the user should be aware of it.
|