Status indicator
A dot and words that mark a state: a large dot with a halo before a heading or a line, a small dot inside chips and cells; only real-time live states pulse.
When to use
- Large, before a section heading that states a status: "Live now", "Coming soon" (the section header's status variant, canonical §10.27). The section header puts this
.oa-status.oa-status--lgelement inside itsh2(.oa-section-header__statusonly places it in the line), so the family has one dot. - Large, before a line that reports a real-time state: "Ready to scan".
- Small, beside a short label inside a chip or a table cell: "On", "Off", "Waiting for its device", "Revoked" (canonical §10.23, D-CSN-27).
When not to use
| Situation | Use instead |
|---|---|
| A person's or pass's status with an icon ("Active", "Invited", "Suspended") | A status chip with its filled icon (canonical §10.9) |
| A status inside running text ("Verified employer", "Closes in 4 days") | The inline status: a filled 16px icon and words in the status ink (chips) |
| The brand dot of an eyebrow pill | The dot pill's decorative primary dot (chips), static and hidden from screen readers |
| A message about something that happened | A banner or a snackbar |
| How much of a task is done | Progress |
Anatomy
- Status (
.oa-status): an inline row of the dot and the words. - Dot (
.oa-status__dot): 12px with a 5px halo in its container color (large) or 8px (small); decorative. - Label (
.oa-status__label): the words, which carry the status.
The status takes the type style of where it sits: a heading's style, a line's style, a chip's label.
Variants
| Tone | Modifier | Dot / halo | Use for |
|---|---|---|---|
| Live | .oa-status--live |
--color-success / --color-success-container; the large dot pulses |
A real-time state that lasts: "Ready to scan", a session in progress |
| Success | .oa-status--success |
--color-success / --color-success-container |
Available or on: "Live now", "On" |
| Pending | .oa-status--pending |
--color-warning / --color-warning-container |
Pending or coming: "Coming soon", "Waiting for its device" |
| Error | .oa-status--error |
--color-error / --color-error-container |
Stopped by a problem: "Revoked" |
| Off | .oa-status--off (the default) |
--color-outline / --color-surface-container-highest |
Off or ended: "Off" |
| Info | .oa-status--info |
--color-info / --color-info-container |
Neutral information: "Estimate" |
Only real-time live states pulse; a section that is "Live now" uses the static success tone (D-CSN-27, D-ARC-17). Tones use the status names, never tertiary or sand (D-COL-07 to D-COL-10).
Sizes
| Size | Height | Padding | Type style | Icon size |
|---|---|---|---|---|
Large (.oa-status--lg) |
12px dot with a 5px halo; the dot is inset 5px from the inline start so the halo never clips | 12px between dot and words | the style of the heading or line it marks: hero-md in a landing section header (canonical §10.27), headline-md for a landing-style section title inside an app, title-md before a line |
— |
Small (.oa-status--sm, the default) |
8px dot, no halo | 8px between dot and words | the chip's or cell's style (label-md, body-md) |
— |
The dot sizes are component constants (canonical §10.23, D-ARC-35). The large status is a block row (it carries a heading); the small one is inline.
Tokens
| Part | Property | Token |
|---|---|---|
| Dot | color | the tone's ink: --color-success, --color-warning, --color-error, --color-outline, --color-info |
| Halo (large) | shadow | 0 0 0 5px in the tone's container: --color-success-container, --color-warning-container, --color-error-container, --color-surface-container-highest, --color-info-container |
| Dot | corners, edge | --radius-full; 1px transparent edge for forced colors |
| Pulse (large, live) | animation | --animate-live (oa-live over --duration-loop-status, 2000ms, --ease-emphasized, infinite): a halo in the dot's own color grows to 9px and fades |
| Gap | spacing | --space-2 (8px) small, --space-3 (12px) large |
Local properties: --oa-status-size, --oa-status-color, --oa-status-halo.
States
| State | What changes |
|---|---|
| Static | The dot (and halo, when large) in the tone's colors beside its words. |
| Live | The large dot's halo pulses once every 2 seconds, only while the state is live. |
| State ends | Tone and words change together: "Ready to scan" (live) becomes the next state's words and tone; the pulse stops. |
| Reduced motion | No pulse: the large dot keeps its static 5px halo; the words remain (canonical §7.7). |
| Paused | Inside a [data-motion="paused"] region the pulse stops. |
| Hover, focus, pressed, disabled | None: a status indicator is not interactive. |
Behavior
- Alignment. The dot centers on the first line of its words in every language (it measures the line with
1lh), so a heading that wraps keeps its dot on the first line. - Pulse. Status loops run only while the state lasts and always beside their word (canonical §7.4, §7.5). Small dots never pulse.
- Change. When the state changes, change the modifier and the words in the same update. Announce the change only if it matters to the task, through the page's status region.
- Static decoration. A dot that only decorates (an eyebrow pill) is static and hidden from screen readers; it never pulses (D-CSN-27).
Accessibility
- Words carry the status. The dot is hidden from screen readers (
<span aria-hidden="true">); the label is read. Color is never the only signal (canonical §2.3, §13). - Contrast. Dots reach 3:1 against the page: the success and warning dots are 6.40:1 and 6.14:1 in light, 10.82:1 and 10.94:1 in dark (D-CSN-27); the
outlinedot is 3:1 or more on every surface. - Motion. The pulse stops under reduced motion and in a paused region; nothing else moves.
- Forced colors. The dot keeps a 1px edge in the system color; the words stay.
RTL and languages
- The dot sits at the inline start: before the words in English and French, after them on the right in Arabic. The halo's inset is logical, so it never clips in either direction.
- Arabic words take Arabic line heights; the dot still centers on the first line.
Content
- One to three words in sentence case that name the state: "Live now", "Coming soon", "Ready to scan", "On", "Off", "Revoked".
- Never a color as the meaning ("Green"), never a status without words.
- "Coming soon" goes with one sentence on what the feature will do, no date unless committed, and no action (canonical §12.5).
| English | Arabic | French |
|---|---|---|
| Live now | متاح الآن | Disponible maintenant |
| Coming soon | قريبًا | Bientôt |
| Ready to scan | جاهز للمسح | Prêt à scanner |
| On · Off (a guest list) | مفعّلة · متوقفة | Activée · Désactivée |
| Revoked (a station) | مُبطَلة | Révoquée |
| Waiting for its device | بانتظار جهازها | En attente de son appareil |
These ship in Global ID; "قريبًا" follows the glossary's spelling, with the tanween on the letter before the alif (canonical §12.3, §12.6), where Global ID writes "قريباً" today, a migration item for native review.
Do and don't
| Do | Don't |
|---|---|
| A static success dot before "Live now" | Pulse a section heading's dot |
| Pulse the dot of "Ready to scan" while the pass is ready | Leave a dot pulsing after the state has ended |
| Pair every dot with its words | Show a lone colored dot in a table cell |
| An 8px dot inside chips and cells | 6px or 7px dots, or a 12px dot in a chip |
| The halo in the tone's container color | A halo in a color of its own, or a halo on small dots |
Code
HTML (reference CSS)
Large, before a section heading and before a line:
<h2 class="oa-status oa-status--lg oa-status--success oa-text-headline-md"><span class="oa-status__dot" aria-hidden="true"></span><span class="oa-status__label">Live now</span></h2>
<h2 class="oa-status oa-status--lg oa-status--pending oa-text-headline-md"><span class="oa-status__dot" aria-hidden="true"></span><span class="oa-status__label">Coming soon</span></h2>
<p class="oa-status oa-status--lg oa-status--live oa-text-title-md"><span class="oa-status__dot" aria-hidden="true"></span><span class="oa-status__label">Ready to scan</span></p>Small, in a cell and in a chip:
<span class="oa-status oa-status--sm oa-status--pending"><span class="oa-status__dot" aria-hidden="true"></span><span class="oa-status__label">Waiting for its device</span></span>
<span class="oa-status-chip oa-status-chip--neutral"><span class="oa-status oa-status--sm oa-status--success"><span class="oa-status__dot" aria-hidden="true"></span><span class="oa-status__label">On</span></span></span>Every tone and the Arabic examples are in reference/snippets/feedback.html.
Tailwind CSS v4
{/* Large, before a heading: the dot centers on the heading's first line. */}
<h2 className="flex items-start gap-3 text-headline-md">
<span aria-hidden="true" className="ms-[5px] mt-[calc((1lh-12px)/2)] size-3 shrink-0 rounded-full border border-transparent bg-success shadow-[0_0_0_5px_var(--color-success-container)]" />
<span>Live now</span>
</h2>
{/* Large, live: the halo pulses only while motion is allowed. */}
<p className="flex items-start gap-3 text-title-md">
<span aria-hidden="true" className="ms-[5px] mt-[calc((1lh-12px)/2)] size-3 shrink-0 rounded-full border border-transparent bg-success text-success shadow-[0_0_0_5px_var(--color-success-container)] motion-safe:animate-live" />
<span>Ready to scan</span>
</p>
{/* Small, inside a cell or chip. */}
<span className="inline-flex items-start gap-2">
<span aria-hidden="true" className="mt-[calc((1lh-8px)/2)] size-2 shrink-0 rounded-full border border-transparent bg-warning" />
<span>Waiting for its device</span>
</span>The live dot sets its text color to the dot color (text-success): animate-live draws its halo in currentColor. Tones: bg-success with shadow-[0_0_0_5px_var(--color-success-container)], bg-warning with the warning container, bg-error with the error container, bg-outline with surface-container-highest, bg-info with the info container.
React
| Prop | Type | Default | Description |
|---|---|---|---|
tone |
"live" | "success" | "pending" | "error" | "off" | "info" |
"off" |
Dot and halo colors; "live" pulses when large. |
size |
"sm" | "lg" |
"sm" |
8px in chips and cells; 12px with a halo before a heading or line. |
as |
ElementType |
"span" |
The element: "h2" for a section heading, "p" for a line. |
children |
ReactNode |
— | The words that carry the status. |
className |
string |
— | A type style for the row (oa-text-headline-md). |
<Status as="h2" size="lg" tone="success" className="oa-text-headline-md">
{t("landing.live.title")}
</Status>
<Status tone={list.on ? "success" : "off"}>{list.on ? t("admin.guests.on") : t("admin.guests.off")}</Status>