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.

Development criteria Status
WCAG 2.2 compliant Not started
WCAG 2.1 compliant Completed
HTML / Nunjucks version Completed
Figma version Not started
M365 versions Not started
Documentation Not started

Make a change to the Design System

Suggest an edit to this system, or any of the components in it, by submitting a Design System change request.