A dot is a small status marker without text.
How to add it to a page. The file is components/css/badge.css.
Link the shared file once per page. Never copy the rules.
| Step | What to do |
|---|---|
| 1. Link | <link rel="stylesheet" href="/components/css/badge.css">. Both templates already have it. |
| 2. Choose | Class badge-dot + a state and a size when needed. |
| 3. Hide it | A dot is decorative: aria-hidden="true". Say the status in text. |
| Class | Use |
|---|---|
badge-dot | The dot. Large (10px), Danger by default. |
badge-dot--warning, --success, --info, --neutral | State. Danger is the default. |
badge-dot--md, --sm | Size: 8px, 6px. |
The component is one CSS file, shared by every page. Link it, never copy it.