Components / Alerts and banners
Error summary
A box at the top of a form that lists every problem as a link straight to the field.
The code
Plain HTML and CSS on your kit's variables. Put it next to tokens/variables.css from your kit's files and it draws in your look.
<div class="ukc-alert-govuk-error-summary">
<div class="es" role="alert"><h2>There is a problem</h2><ul><li><a href="#">Enter your business name</a></li><li><a href="#">The start date must be in the past</a></li><li><a href="#">Enter a ZIP code, like 94110</a></li></ul></div>
</div>
.ukc-alert-govuk-error-summary { position: relative; font-family: var(--uk-font-body, system-ui, sans-serif); color: var(--uk-ink); font-size: 15px; line-height: 1.5;
--tint: color-mix(in srgb, var(--uk-accent) 12%, var(--uk-paper));
--tint-strong: color-mix(in srgb, var(--uk-accent) 22%, var(--uk-paper));
--accent-deep: color-mix(in srgb, var(--uk-accent) 72%, black);
--ink-soft: color-mix(in srgb, var(--uk-ink) 8%, var(--uk-paper));
--line-strong: color-mix(in srgb, var(--uk-ink) 32%, var(--uk-paper));
--danger-tint: color-mix(in srgb, var(--uk-danger) 12%, var(--uk-paper));
--high-tint: color-mix(in srgb, var(--uk-highlight) 28%, var(--uk-paper)); }
.ukc-alert-govuk-error-summary *, .ukc-alert-govuk-error-summary *::before, .ukc-alert-govuk-error-summary *::after { box-sizing: border-box; }
.ukc-alert-govuk-error-summary :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-alert-govuk-error-summary :where(ul, ol) { padding: 0; list-style: none; }
.ukc-alert-govuk-error-summary :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-alert-govuk-error-summary :where(a) { color: inherit; }
.ukc-alert-govuk-error-summary svg { flex: none; }
.ukc-alert-govuk-error-summary .es { max-width: 560px; padding: 15px 20px; border: 5px solid var(--uk-danger); }
.ukc-alert-govuk-error-summary h2 { font-size: 22px; font-weight: 700; margin-bottom: 12px; font-family: var(--uk-font-display, inherit); }
.ukc-alert-govuk-error-summary ul { display: grid; gap: 6px; }
.ukc-alert-govuk-error-summary a { color: var(--uk-danger); font-weight: 700; text-underline-offset: 3px; }
More alerts and banners
All 26Application complete
Your reference number
HDN-2026-4417Two invoices are waiting for your approval.
We could not reach your bank. Payouts are on hold.
Sync paused Your crew's phones will catch up when they reconnect.
Export failed The CSV was larger than 10 MB. Narrow the date range.
Permit renewal opens Monday
Renewals for 2027 permits start on 3 November.
Your session ends in 5 minutes
Save your work to keep your answers.
Payment declined
Try a different card or contact your bank.
- Invoice sent to Reyes FramingPhotos uploaded