{{ aspExample({ code: "<div class=\"alert alert–success\">
<h1 class=\"alert_title\">Sign in email sent</h1>
<p>If your email address is valid, an email has been sent to it with a link to sign in to [Application]</p>
<p>It should arrive immediately. The link will expire after 10 minutes. If this happens, you will need to request a new link.</p>
</div>", nunjucks: "{{ aspAlert({
modifier: \"success\",
title: \"Alert title\",
content: {
html: '<p>Alert content (html) with a <a href=\"#\">link</a></p>
<p>With additional line. modifier: success</p>'
}
}) }}", title: "", id: "65a92a41e4915", url: "" }) }} {{ aspExample({ code: "", nunjucks: "{{ aspAlert({
modifier: \"warning\",
content: {
text: \"Alert content (text) without a title. modifier: warning\"
}
}) }}", title: "", id: "66e0373036671", url: "" }) }} {{ aspExample({ code: "<div class=\"alert alert–danger\">
<p>This is a danger alert message with a <a href=\"#\">text link</a></p>
</div>", nunjucks: "{{ aspAlert({
modifier: \"danger\",
content: {
text: \"Alert content (text) without a title. modifier: danger\"
}
}) }}", title: "", id: "65a92a41e4974", url: "" }) }}

Alias

A (left aligned) alert is now a notification component.

Status of development

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.


{{ aspTable({
head: [
{ text: 'Development criteria'},
{ text: 'Status'}
],
rows: [
{
cells: [
{ text: 'WCAG 2.2 compliant'},
{ html: '<span class="status">Not started</span>'}
]
},
{
cells: [
{ text: 'WCAG 2.1 compliant'},
{ html: '<span class="status status–red">Failing</span>'}
]
},
{
cells: [
{ text: 'HTML / Nunjucks version'},
{ html: '<span class="status status–green">Completed</span>'}
]
},
{
cells: [
{ text: 'Figma version'},
{ html: '<span class="status status">Not started</span>'}
]
},
{
cells: [
{ text: 'M365 versions'},
{ html: '<span class="status status">Not started</span>'}
]
},
{
cells: [
{ text: 'Documentation'},
{ html: '<span class="status status–yellow">In progress</span>'}
]
}
]
}) }}