The Environment component displays a clear banner at the top of every page to indicate when a user is viewing a non-production environment.

The component helps prevent confusion by ensuring users always understand whether they are interacting with a Development, Staging or Production service.

{{ aspExample({ code: "", nunjucks: "", json: "", title: "", example: "default", id: "685a695476fe7" }) }}

When to use this component

Use the Environment component on any page that is not part of the live, production service.

This includes:

The purpose of the component is to ensure users — including developers, testers, content designers and stakeholders — immediately recognise that the page is not a live, public-facing system.

When not to use this component

Do not use the Environment component in a production environment.

The banner should never appear on pages intended for real users completing real tasks.

Before using this component, consider:

The Environment component is intentionally prominent. Its bright yellow background and position at the top of the page ensure that users do not mistake a testing environment for a live service.

Example of where we have used this component

This component is used on:

This list is not exhaustive.

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="asp-status">Not started</span>'}
]
},
{
cells: [
{ text: 'WCAG 2.1 compliant'},
{ html: '<span class="asp-status asp-status–green">Completed</span>'}
]
},
{
cells: [
{ text: 'HTML / Nunjucks version'},
{ html: '<span class="asp-status asp-status–green">Completed</span>'}
]
},
{
cells: [
{ text: 'Figma version'},
{ html: '<span class="asp-status">Not started</span>'}
]
},
{
cells: [
{ text: 'M365 versions'},
{ html: '<span class="asp-status">Not started</span>'}
]
},
{
cells: [
{ text: 'Documentation'},
{ html: '<span class="asp-status">Not started</span>'}
]
}
]
}) }}