Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

docs(status-dot): document a11y usage responsibilities in dos and donts (#4737)

Ernest66125691d0d5
diff --git a/.changeset/statusdot-a11y-guidance.md b/.changeset/statusdot-a11y-guidance.md
new file mode 100644
index 0000000000..c6bc9544c8
--- /dev/null
+++ b/.changeset/statusdot-a11y-guidance.md
@@ -0,0 +1,6 @@
+---
+'@astryxdesign/core': patch
+---
+
+[docs] StatusDot: document the builder's accessibility responsibilities in the usage dos and don'ts. A color-only dot is not fully accessible in isolation, so the guidance now says to use it as a binary present/absent signal, pair it with a label, carry the status as a shape via an icon, and — if neither fits — convey the status through an accessible alternative.
+@ernestt
diff --git a/packages/core/src/StatusDot/StatusDot.doc.mjs b/packages/core/src/StatusDot/StatusDot.doc.mjs
index 5098af628c..a1f4fc25ac 100644
--- a/packages/core/src/StatusDot/StatusDot.doc.mjs
+++ b/packages/core/src/StatusDot/StatusDot.doc.mjs
@@ -49,10 +49,13 @@ export const docs = {
description:
'A small colored dot that communicates status like online/offline presence or severity levels. Supports five semantic variants and an optional pulse animation. Always pair with a visible text label, as color alone should not carry meaning.',
bestPractices: [
+ { guidance: true, description: 'Use StatusDot as a binary present/absent signal; avoid encoding many distinct states in a single dot, since color and size alone cannot reliably distinguish them.' },
{ guidance: true, description: 'Always pair with a visible text label so status is not conveyed by color alone.' },
{ guidance: true, description: 'Provide a descriptive `label` prop for screen reader accessibility.' },
+ { guidance: true, description: 'Pair the dot with an icon that carries the status as a distinct shape when it must stand on its own without adjacent text, so meaning survives without color.' },
+ { guidance: true, description: 'If you can\'t add a label or an icon, make sure the status is conveyed elsewhere accessibly (e.g. adjacent text, a table column, or a live region).' },
+ { guidance: false, description: 'Rely on color alone to communicate status; StatusDot is not fully accessible in isolation, so the builder must make the status distinguishable in context via a label, an icon, or an accessible alternative.' },
{ guidance: false, description: 'Use the pulse animation for purely decorative purposes; reserve it for states that require immediate attention.' },
- { guidance: false, description: 'Rely on color alone to communicate status; always include text.' },
],
},
};
@@ -97,10 +100,13 @@ export const docsZh = {
description:
'A small colored dot that communicates status like online/offline presence or severity levels. Supports five semantic variants and an optional pulse animation. Always pair with a visible text label, as color alone should not carry meaning.',
bestPractices: [
+ { guidance: true, description: 'Use StatusDot as a binary present/absent signal; avoid encoding many distinct states in a single dot, since color and size alone cannot reliably distinguish them.' },
{ guidance: true, description: 'Always pair with a visible text label so status is not conveyed by color alone.' },
{ guidance: true, description: 'Provide a descriptive `label` prop for screen reader accessibility.' },
+ { guidance: true, description: 'Pair the dot with an icon that carries the status as a distinct shape when it must stand on its own without adjacent text, so meaning survives without color.' },
+ { guidance: true, description: 'If you can\'t add a label or an icon, make sure the status is conveyed elsewhere accessibly (e.g. adjacent text, a table column, or a live region).' },
+ { guidance: false, description: 'Rely on color alone to communicate status; StatusDot is not fully accessible in isolation, so the builder must make the status distinguishable in context via a label, an icon, or an accessible alternative.' },
{ guidance: false, description: 'Use the pulse animation for purely decorative purposes; reserve it for states that require immediate attention.' },
- { guidance: false, description: 'Rely on color alone to communicate status; always include text.' },
],
},
};
@@ -112,10 +118,13 @@ export const docsDense = {
description:
'A small colored dot that communicates status like online/offline presence or severity levels. Supports five semantic variants and an optional pulse animation. Always pair with a visible text label, as color alone should not carry meaning.',
bestPractices: [
+ { guidance: true, description: 'Use StatusDot as a binary present/absent signal; avoid encoding many distinct states in a single dot, since color and size alone cannot reliably distinguish them.' },
{ guidance: true, description: 'Always pair with a visible text label so status is not conveyed by color alone.' },
{ guidance: true, description: 'Provide a descriptive `label` prop for screen reader accessibility.' },
+ { guidance: true, description: 'Pair the dot with an icon that carries the status as a distinct shape when it must stand on its own without adjacent text, so meaning survives without color.' },
+ { guidance: true, description: 'If you can\'t add a label or an icon, make sure the status is conveyed elsewhere accessibly (e.g. adjacent text, a table column, or a live region).' },
+ { guidance: false, description: 'Rely on color alone to communicate status; StatusDot is not fully accessible in isolation, so the builder must make the status distinguishable in context via a label, an icon, or an accessible alternative.' },
{ guidance: false, description: 'Use the pulse animation for purely decorative purposes; reserve it for states that require immediate attention.' },
- { guidance: false, description: 'Rely on color alone to communicate status; always include text.' },
],
},
propDescriptions: {