@instructure/ui-checkbox 11.7.11-snapshot-14 → 11.7.11-snapshot-15
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.
package/CHANGELOG.md
CHANGED
|
@@ -3,12 +3,11 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
## [11.7.11-snapshot-
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package @instructure/ui-checkbox
|
|
9
|
-
|
|
6
|
+
## [11.7.11-snapshot-15](https://github.com/instructure/instructure-ui/compare/v11.7.10...v11.7.11-snapshot-15) (2026-11-04)
|
|
10
7
|
|
|
8
|
+
### Bug Fixes
|
|
11
9
|
|
|
10
|
+
* **ui-checkbox:** use the switch role for the toggle variant ([#2757](https://github.com/instructure/instructure-ui/issues/2757)) ([83cae29](https://github.com/instructure/instructure-ui/commit/83cae29e8004d669a8d3d662e3fa545b895ce242))
|
|
12
11
|
|
|
13
12
|
|
|
14
13
|
## [11.7.10](https://github.com/instructure/instructure-ui/compare/v11.7.8...v11.7.10) (2026-10-14)
|
package/es/Checkbox/v2/index.js
CHANGED
|
@@ -278,10 +278,11 @@ let Checkbox = (_dec = withDeterministicId(), _dec2 = withStyleNew(generateStyle
|
|
|
278
278
|
required: isRequired,
|
|
279
279
|
disabled: disabled,
|
|
280
280
|
readOnly: readOnly,
|
|
281
|
-
"aria-readonly": readOnly ? true : undefined
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
"aria-
|
|
281
|
+
"aria-readonly": readOnly ? true : undefined
|
|
282
|
+
// the switch role does not support aria-checked="mixed"
|
|
283
|
+
,
|
|
284
|
+
"aria-checked": indeterminate && variant !== 'toggle' ? 'mixed' : undefined,
|
|
285
|
+
role: variant === 'toggle' ? 'switch' : undefined,
|
|
285
286
|
"aria-invalid": this.invalid ? 'true' : undefined
|
|
286
287
|
// Keep messages in the description so the accessible name contains only the label.
|
|
287
288
|
,
|
package/lib/Checkbox/v2/index.js
CHANGED
|
@@ -297,10 +297,11 @@ let Checkbox = exports.Checkbox = (_dec = (0, _uiReactUtils.withDeterministicId)
|
|
|
297
297
|
required: isRequired,
|
|
298
298
|
disabled: disabled,
|
|
299
299
|
readOnly: readOnly,
|
|
300
|
-
"aria-readonly": readOnly ? true : undefined
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
"aria-
|
|
300
|
+
"aria-readonly": readOnly ? true : undefined
|
|
301
|
+
// the switch role does not support aria-checked="mixed"
|
|
302
|
+
,
|
|
303
|
+
"aria-checked": indeterminate && variant !== 'toggle' ? 'mixed' : undefined,
|
|
304
|
+
role: variant === 'toggle' ? 'switch' : undefined,
|
|
304
305
|
"aria-invalid": this.invalid ? 'true' : undefined
|
|
305
306
|
// Keep messages in the description so the accessible name contains only the label.
|
|
306
307
|
,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-checkbox",
|
|
3
|
-
"version": "11.7.11-snapshot-
|
|
3
|
+
"version": "11.7.11-snapshot-15",
|
|
4
4
|
"description": " styled HTML input type='checkbox' component.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -15,24 +15,24 @@
|
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@babel/runtime": "^7.29.7",
|
|
18
|
-
"@instructure/console": "11.7.11-snapshot-
|
|
19
|
-
"@instructure/emotion": "11.7.11-snapshot-
|
|
20
|
-
"@instructure/shared-types": "11.7.11-snapshot-
|
|
21
|
-
"@instructure/ui-dom-utils": "11.7.11-snapshot-
|
|
22
|
-
"@instructure/ui-form-field": "11.7.11-snapshot-
|
|
23
|
-
"@instructure/ui-icons": "11.7.11-snapshot-
|
|
24
|
-
"@instructure/ui-react-utils": "11.7.11-snapshot-
|
|
25
|
-
"@instructure/ui-svg-images": "11.7.11-snapshot-
|
|
26
|
-
"@instructure/ui-themes": "11.7.11-snapshot-
|
|
27
|
-
"@instructure/ui-utils": "11.7.11-snapshot-
|
|
28
|
-
"@instructure/ui-view": "11.7.11-snapshot-
|
|
29
|
-
"@instructure/uid": "11.7.11-snapshot-
|
|
18
|
+
"@instructure/console": "11.7.11-snapshot-15",
|
|
19
|
+
"@instructure/emotion": "11.7.11-snapshot-15",
|
|
20
|
+
"@instructure/shared-types": "11.7.11-snapshot-15",
|
|
21
|
+
"@instructure/ui-dom-utils": "11.7.11-snapshot-15",
|
|
22
|
+
"@instructure/ui-form-field": "11.7.11-snapshot-15",
|
|
23
|
+
"@instructure/ui-icons": "11.7.11-snapshot-15",
|
|
24
|
+
"@instructure/ui-react-utils": "11.7.11-snapshot-15",
|
|
25
|
+
"@instructure/ui-svg-images": "11.7.11-snapshot-15",
|
|
26
|
+
"@instructure/ui-themes": "11.7.11-snapshot-15",
|
|
27
|
+
"@instructure/ui-utils": "11.7.11-snapshot-15",
|
|
28
|
+
"@instructure/ui-view": "11.7.11-snapshot-15",
|
|
29
|
+
"@instructure/uid": "11.7.11-snapshot-15",
|
|
30
30
|
"keycode": "^2"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@instructure/ui-axe-check": "11.7.11-snapshot-
|
|
34
|
-
"@instructure/ui-babel-preset": "11.7.11-snapshot-
|
|
35
|
-
"@instructure/ui-color-utils": "11.7.11-snapshot-
|
|
33
|
+
"@instructure/ui-axe-check": "11.7.11-snapshot-15",
|
|
34
|
+
"@instructure/ui-babel-preset": "11.7.11-snapshot-15",
|
|
35
|
+
"@instructure/ui-color-utils": "11.7.11-snapshot-15",
|
|
36
36
|
"vitest": "^5.0.0"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
@@ -342,9 +342,11 @@ class Checkbox extends Component<CheckboxProps, CheckboxState> {
|
|
|
342
342
|
disabled={disabled}
|
|
343
343
|
readOnly={readOnly}
|
|
344
344
|
aria-readonly={readOnly ? true : undefined}
|
|
345
|
-
aria-checked=
|
|
346
|
-
|
|
347
|
-
|
|
345
|
+
// the switch role does not support aria-checked="mixed"
|
|
346
|
+
aria-checked={
|
|
347
|
+
indeterminate && variant !== 'toggle' ? 'mixed' : undefined
|
|
348
|
+
}
|
|
349
|
+
role={variant === 'toggle' ? 'switch' : undefined}
|
|
348
350
|
aria-invalid={this.invalid ? 'true' : undefined}
|
|
349
351
|
// Keep messages in the description so the accessible name contains only the label.
|
|
350
352
|
aria-labelledby={
|