COMPONENTS
Alerts
Messages with one alert class. Theme, accent, shape, size, density, depth, borders, fill and material follow the parent. Attributes are optional exceptions, not required on every alert.
Usage
Markup: .alert
Behaviour: Static messages have no automatic live region or dismissal.
- Default: primary variant with a tinted appearance. Primary uses your inherited accent for informational messages. Success, warning, danger and neutral share the badge vocabulary. Write the meaning in text; colour alone is insufficient.
- Use ordinary div, section or paragraph markup for static messages. The alert class does not create a live region. For a message updated by your application, establish role="status" before a non-urgent update, or role="alert" for an urgent update that warrants interruption. These ARIA roles do not add interactivity.
- data-variant and data-appearance work on html, parent sections or individual exceptions. Unsupported values preserve the nearest valid ancestor setting. Decorative data-edge does not apply to alerts.
- Alerts are persistent. CSS does not provide a dismiss action; no inactive close buttons are included. Use native links for destinations and buttons only for actions implemented by your application.
Component API and styling module · Inherited appearance settings
One class, no attributes
A static informational message uses the inherited accent and needs no announcement role.
Shared status variants
Choose meaning through visible text and optional variants. Each message stays readable without relying on its colour.
Headings, lists and links
Ordinary HTML supports richer messages. Use a heading level that fits your document and descriptive links.
Review before continuing
Please check the following details:
- Your billing address
- Your preferred payment method
Parent defaults and local exceptions
Both alerts inherit appearance and shape. Only the exception needs its own variant.
Tinted, solid and outline
The same appearance setting configures badges and alerts. Outline keeps an opaque surface backing for readable content.
Glass with a solid exception
Load the optional glass extension. Parent material carries into alerts; a local solid section stops it. Unsupported blur retains opaque backing.
Application announcement markup
This markup is for an application that later updates the message. Keep the region in the document before updating its contents; use urgent alerts sparingly.