@instructure/ui-tree-browser 10.4.2-snapshot-4 → 10.4.2-snapshot-6
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 +5 -2
- package/es/TreeBrowser/TreeCollection/index.js +1 -1
- package/lib/TreeBrowser/TreeCollection/index.js +1 -1
- package/package.json +14 -14
- package/src/TreeBrowser/TreeCollection/index.tsx +3 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/TreeBrowser/TreeCollection/index.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,9 +3,12 @@
|
|
|
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
|
-
## [10.4.2-snapshot-
|
|
6
|
+
## [10.4.2-snapshot-6](https://github.com/instructure/instructure-ui/compare/v10.4.1...v10.4.2-snapshot-6) (2024-10-31)
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **ui-tree-browser:** treeBrowser collection descriptor is not read by screenreaders ([87623f7](https://github.com/instructure/instructure-ui/commit/87623f77cbad91961c9c390511774001e8fa6177))
|
|
9
12
|
|
|
10
13
|
|
|
11
14
|
|
|
@@ -314,7 +314,7 @@ let TreeCollection = (_dec = withStyle(generateStyles, generateComponentTheme),
|
|
|
314
314
|
tabIndex: -1
|
|
315
315
|
/* eslint-disable-next-line jsx-a11y/role-has-required-aria-props */,
|
|
316
316
|
role: "treeitem",
|
|
317
|
-
"aria-label": this.props.name
|
|
317
|
+
"aria-label": `${this.props.name}${this.props.descriptor ? ` ${this.props.descriptor}` : ''}`,
|
|
318
318
|
"aria-level": level,
|
|
319
319
|
"aria-posinset": position,
|
|
320
320
|
"aria-setsize": this.props.numChildren,
|
|
@@ -321,7 +321,7 @@ let TreeCollection = exports.TreeCollection = (_dec = (0, _emotion.withStyle)(_s
|
|
|
321
321
|
tabIndex: -1
|
|
322
322
|
/* eslint-disable-next-line jsx-a11y/role-has-required-aria-props */,
|
|
323
323
|
role: "treeitem",
|
|
324
|
-
"aria-label": this.props.name
|
|
324
|
+
"aria-label": `${this.props.name}${this.props.descriptor ? ` ${this.props.descriptor}` : ''}`,
|
|
325
325
|
"aria-level": level,
|
|
326
326
|
"aria-posinset": position,
|
|
327
327
|
"aria-setsize": this.props.numChildren,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-tree-browser",
|
|
3
|
-
"version": "10.4.2-snapshot-
|
|
3
|
+
"version": "10.4.2-snapshot-6",
|
|
4
4
|
"description": "A component for displaying a hierarchical view of information",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -23,22 +23,22 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@instructure/ui-babel-preset": "10.4.2-snapshot-
|
|
27
|
-
"@instructure/ui-color-utils": "10.4.2-snapshot-
|
|
28
|
-
"@instructure/ui-test-locator": "10.4.2-snapshot-
|
|
29
|
-
"@instructure/ui-test-utils": "10.4.2-snapshot-
|
|
30
|
-
"@instructure/ui-themes": "10.4.2-snapshot-
|
|
26
|
+
"@instructure/ui-babel-preset": "10.4.2-snapshot-6",
|
|
27
|
+
"@instructure/ui-color-utils": "10.4.2-snapshot-6",
|
|
28
|
+
"@instructure/ui-test-locator": "10.4.2-snapshot-6",
|
|
29
|
+
"@instructure/ui-test-utils": "10.4.2-snapshot-6",
|
|
30
|
+
"@instructure/ui-themes": "10.4.2-snapshot-6"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@babel/runtime": "^7.25.6",
|
|
34
|
-
"@instructure/emotion": "10.4.2-snapshot-
|
|
35
|
-
"@instructure/shared-types": "10.4.2-snapshot-
|
|
36
|
-
"@instructure/ui-icons": "10.4.2-snapshot-
|
|
37
|
-
"@instructure/ui-img": "10.4.2-snapshot-
|
|
38
|
-
"@instructure/ui-prop-types": "10.4.2-snapshot-
|
|
39
|
-
"@instructure/ui-react-utils": "10.4.2-snapshot-
|
|
40
|
-
"@instructure/ui-testable": "10.4.2-snapshot-
|
|
41
|
-
"@instructure/ui-utils": "10.4.2-snapshot-
|
|
34
|
+
"@instructure/emotion": "10.4.2-snapshot-6",
|
|
35
|
+
"@instructure/shared-types": "10.4.2-snapshot-6",
|
|
36
|
+
"@instructure/ui-icons": "10.4.2-snapshot-6",
|
|
37
|
+
"@instructure/ui-img": "10.4.2-snapshot-6",
|
|
38
|
+
"@instructure/ui-prop-types": "10.4.2-snapshot-6",
|
|
39
|
+
"@instructure/ui-react-utils": "10.4.2-snapshot-6",
|
|
40
|
+
"@instructure/ui-testable": "10.4.2-snapshot-6",
|
|
41
|
+
"@instructure/ui-utils": "10.4.2-snapshot-6",
|
|
42
42
|
"keycode": "^2",
|
|
43
43
|
"prop-types": "^15.8.1"
|
|
44
44
|
},
|
|
@@ -387,7 +387,9 @@ class TreeCollection extends Component<
|
|
|
387
387
|
tabIndex={-1}
|
|
388
388
|
/* eslint-disable-next-line jsx-a11y/role-has-required-aria-props */
|
|
389
389
|
role="treeitem"
|
|
390
|
-
aria-label={this.props.name}
|
|
390
|
+
aria-label={`${this.props.name}${
|
|
391
|
+
this.props.descriptor ? ` ${this.props.descriptor}` : ''
|
|
392
|
+
}`}
|
|
391
393
|
aria-level={level}
|
|
392
394
|
aria-posinset={position}
|
|
393
395
|
aria-setsize={this.props.numChildren}
|