The Alert component displays high-priority messages that require user’s attention. It is also known as a “system alert” or “global message”.
This is a first iteration of the Alert component currently implemented in the Allocate application. The component is displayed across the application, but only for those who are classified as ‘Admin users’.
The Design System team are discussing our approach to ‘global messaging’ approach so this component is not ready for general use.
{{ aspExample({ code: "", nunjucks: "", json: "", title: "", example: "default", id: "65a92a41e4915" }) }} {{ aspExample({ code: "", nunjucks: "", json: "", title: "", example: "green", id: "68cada2d4d5ea" }) }} {{ aspExample({ code: "", nunjucks: "", json: "", title: "", example: "amber", id: "68caea2977aaa" }) }} {{ aspExample({ code: "", nunjucks: "", json: "", title: "", example: "red", id: "68caea2977aed" }) }} {{ aspExample({ code: "", nunjucks: "", json: "", title: "", example: "grey", id: "68caea2977b31" }) }} {{ aspExample({ code: "<div class=\"asp-alert asp-alert–red\" role=\"region\">Use the Alert component to notify users of critical, system-wide issues that require immediate attention. This includes errors, warnings, or important updates that affect the whole service or system.
Do not use the Alert component for contextual or page-specific messages. For example:
For these cases, consider using the ‘Notification‘ component instead.
The below criteria all need to be met for a component to be considered as fully developed for use within the ASP Digital Design System.