Skip to content

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

TypeScript

docs(SegmentedControl): label contrast depends on the background under the translucent track (#10882)

Cindy Zhang5f1c1161b0a9
diff --git a/.changeset/segmented-control-contrast-docs.md b/.changeset/segmented-control-contrast-docs.md
new file mode 100644
index 0000000000..b2cb65c8b5
--- /dev/null
+++ b/.changeset/segmented-control-contrast-docs.md
@@ -0,0 +1,7 @@
+---
+'@astryxdesign/core': patch
+---
+
+[docs] SegmentedControl: the label contrast guidance says the track is translucent, so label contrast depends on the background behind the control, and asks you to check the labels on every background it sits on, including a custom page color.
+
+@cixzhang
diff --git a/packages/core/src/SegmentedControl/SegmentedControl.doc.mjs b/packages/core/src/SegmentedControl/SegmentedControl.doc.mjs
index 803a6a1850..28619fa726 100644
--- a/packages/core/src/SegmentedControl/SegmentedControl.doc.mjs
+++ b/packages/core/src/SegmentedControl/SegmentedControl.doc.mjs
@@ -177,7 +177,7 @@ function WorkspaceCard() {
requirement: '4.5:1',
states: ['Rest', 'Hover', 'Pointer down', 'Selected'],
description:
- 'Each label must have at least 4.5:1 contrast with its segment background. Check unselected, Hover, Pointer down, and selected colors as they appear on screen. For Hover and Pointer down, measure the final background after the overlay is applied.',
+ 'Each label must have at least 4.5:1 contrast with its segment background. Check unselected, Hover, Pointer down, and selected colors as they appear on screen. For Hover and Pointer down, measure the final background after the overlay is applied. The track is translucent, so label contrast depends on the background behind the control. Check the labels on every background the control sits on, including a custom page color.',
},
{
name: 'Essential icon',