Warning text
Sample HTML
<div class="ds_warning-text">
<strong class="ds_warning-text__icon" aria-hidden="true"></strong>
<strong class="visually-hidden">Warning</strong>
<div class="ds_warning-text__text">Call 999 if you or someone else is in immediate danger, or if the crime is in progress.</div>
</div>
We based our warning text component on the one built by GDS. Find out more about the warning text component on GOV.UK’s Design System.
Website analytics
To understand user behaviour, clicks on links in warning text blocks can be tracked through the click URL, the click text and a data attribute showing the interaction.
The data attribute is added automatically by the Design System’s ‘tracking’ script.
Live example
License an air weapon (mygov.scot)
Feedback, help and support
If you need help or support you can e-mail us at designsystem@gov.scot
There is a problem
Thanks for your feedback