@codecademy/gamut 72.2.4-alpha.628984.0 → 72.2.4-alpha.787061.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -140,8 +140,7 @@ const lastInput = useRef('');
140
140
 
141
141
  - `FormGroup` `htmlFor` must match control `id` (not `name`). Alternatively, pass `htmlFor` directly on SelectDropdown and it becomes `id` downstream.
142
142
  - Pass `name` on SelectDropdown (required for forms).
143
- - Rely on FormGroupLabel's `htmlFor`/`id` connection for the accessible label this is the standard HTML pattern and preferred method.
144
- - Only add `aria-label` when absolutely necessary (e.g., no visible label, label is hidden, or form context requires it). Do not use `aria-label` when a FormGroupLabel is present, as it overrides the visible label.
143
+ - Pass `aria-label` (required for forms); it must match the FormGroupLabel `htmlFor`.
145
144
  - Pass `error` boolean when FormGroup has an error.
146
145
  - Generic FormGroup live-region behavior: see [`gamut-forms`](../gamut-forms/SKILL.md).
147
146
 
@@ -150,6 +149,7 @@ const lastInput = useRef('');
150
149
  <SelectDropdown
151
150
  id="country"
152
151
  name="country"
152
+ aria-label="country"
153
153
  options={options}
154
154
  value={value}
155
155
  error={Boolean(errors.country)}
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@codecademy/gamut",
3
3
  "description": "Styleguide & Component library for Codecademy",
4
- "version": "72.2.4-alpha.628984.0",
4
+ "version": "72.2.4-alpha.787061.0",
5
5
  "author": "Codecademy Engineering <dev@codecademy.com>",
6
6
  "bin": "./bin/gamut.mjs",
7
7
  "dependencies": {
8
- "@codecademy/gamut-icons": "9.57.11-alpha.628984.0",
9
- "@codecademy/gamut-illustrations": "0.58.16-alpha.628984.0",
10
- "@codecademy/gamut-patterns": "0.10.35-alpha.628984.0",
11
- "@codecademy/gamut-styles": "20.0.3-alpha.628984.0",
12
- "@codecademy/variance": "0.26.2-alpha.628984.0",
8
+ "@codecademy/gamut-icons": "9.57.11-alpha.787061.0",
9
+ "@codecademy/gamut-illustrations": "0.58.16-alpha.787061.0",
10
+ "@codecademy/gamut-patterns": "0.10.35-alpha.787061.0",
11
+ "@codecademy/gamut-styles": "20.0.3-alpha.787061.0",
12
+ "@codecademy/variance": "0.26.2-alpha.787061.0",
13
13
  "@formatjs/intl-locale": "5.3.1",
14
14
  "@react-aria/interactions": "3.25.0",
15
15
  "@types/marked": "^4.0.8",