{{ aspExample({ code: "<span class=\"status\">Booked</span>", nunjucks: "{{ aspStatus({
modifier: \"default\",
text: \"Booked. modifier: default\"
}) }}", title: "", id: "65a92f069509a", url: "" }) }} {{ aspExample({ code: "<span class=\"status status–yellow\">In Progress</span>", nunjucks: "{{ aspStatus({
modifier: \"yellow\",
text: \"In progress. modifier: yellow\"
}) }}", title: "", id: "65a92f06950fa", url: "" }) }} {{ aspExample({ code: "<span class=\"status status–green\">Successful</span>", nunjucks: "{{ aspStatus({
modifier: \"green\",
text: \"Successful. modifier: green\"
}) }}", title: "", id: "65a92f0695135", url: "" }) }} {{ aspExample({ code: "<span class=\"status status–red\">Failed</span>", nunjucks: "{{ aspStatus({
modifier: \"red\",
text: \"Failed. modifier: red\"
}) }}", title: "", id: "65a92f0695156", url: "" }) }} {{ aspExample({ code: "<span class=\"status status–grey\">189</span>", nunjucks: "{{ aspStatus({
modifier: \"grey\",
text: \"modifier: grey\"
}) }}", title: "", id: "668e7286455ff", url: "" }) }}

When to use this component

Use the status component when it’s possible for something to have more than one status and it’s useful for the user to know about that status. For example, you can use a status to show whether an item in a list has been ‘completed’.

WIP – CK consideration for content (max 2/3 words)

Showing one or more statuses

Sometimes a single status is enough. For example if you need to tell users which parts of an application they’ve finished and which they have not, you may only need a ‘Completed’ status. Because the user understands that if something does not have a status, that means it’s incomplete.
Statuses should be helpful to users. The more you add, the harder it is for users to remember them. Start with the smallest number of statuses you think might work, then add more if your user research shows there’s a need for them.

Using colour with status

Use colour to help distinguish between different statuses – or to help draw the user’s attention to a status if it’s especially important. For example, it probably makes sense to use red a status that reads ‘Urgent’.

Do not use colour alone to convey information because it’s not accessible. If you use the same status in more than one place, make sure you keep the colour consistent.

Because status with solid colours tend to stand out more, it’s usually best to avoid mixing solid colours and tints: use one or the other. This matters less if you’re only using two colours.

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>'}
]
}
]
}) }}