@codecademy/gamut
70.0.070.0.1-alpha.cbad11.0
agent-tools/rules/accessibility.mdc~
agent-tools/rules/accessibility.mdcModified+1−1
Index: package/agent-tools/rules/accessibility.mdc
===================================================================
--- package/agent-tools/rules/accessibility.mdc
+++ package/agent-tools/rules/accessibility.mdc
@@ -55,9 +55,9 @@
Match `htmlFor` on `<FormGroupLabel>` with the `id` on the control. Base `<FormGroup>` renders live regions for `error` and `description`; `GridForm` and `ConnectedForm` add field wiring (`aria-describedby`, `aria-invalid`, first-error `aria-live` behavior) — do not add redundant duplicate regions. Depth: [`skills/gamut-forms/SKILL.md`](../skills/gamut-forms/SKILL.md).
## Screen-reader-only text
-Use `<Text screenreader>` for visually hidden but announced content. `<HiddenText>` is deprecated.
+Use `<Text screenreader>` for visually hidden but announced content.
## Color and contrast
Do not hardcode hex for adaptive UI. Prefer semantic tokens and `ColorMode` / `<Background>` so surfaces track theme and mode — see the [`gamut-color-mode`](../skills/gamut-color-mode/SKILL.md) skill. Default pairings support accessible UI, but tokens do not guarantee WCAG compliance for every layout; validate non-standard combinations.