{{ aspExample({ code: "<div class=\"asp-action\">
<div class=\"asp-action__heading-container\">
<h2 class=\"asp-action__heading\">This is an action title</h2>
<span class=\"asp-action__arrow\" aria-hidden=\"true\"></span>
</div>
<div class=\"asp-action__content\">
<p>And this is action content with test a <a href=\"#\">text link</a></p>
</div>
</div>", nunjucks: "{{ aspAction({
title: \"Action title\",
content: {
html: '<p>Action content (html) with a <a href=\"#\">link</a>.</p>'
}
}) }}", title: "", id: "65a929bc0055c", url: "" }) }} {{ aspExample({ code: "<div class=\"asp-action asp-action–urgent\">
<div class=\"asp-action__heading-container\">
<h2 class=\"asp-action__heading\">This is an action title</h2>
<span class=\"asp-action__arrow\" aria-hidden=\"true\"></span>
</div>
<div class=\"asp-action__content\">
<p>And this is action content with a <a href=\"#\">text link</a></p>
</div>
</div>", nunjucks: "{{ aspAction({
modifier: \"urgent\",
title: \"Action title\",
content: {
text: \"Action content (text). modifier: urgent\"
}
}) }}", title: "", id: "65a929bc00598", url: "" }) }}

When to use this component

‘Actions’ are used to highlight content where an action is needed by a user. There are two options:

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–green">Completed</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>'}
]
}
]
}) }}