@instructure/ui-tree-browser 8.36.1-snapshot-7 → 8.36.1-snapshot-17
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 +1 -1
- package/es/TreeBrowser/TreeCollection/index.js +15 -4
- package/es/TreeBrowser/props.js +8 -0
- package/lib/TreeBrowser/TreeButton/index.js +24 -0
- package/lib/TreeBrowser/TreeCollection/index.js +41 -4
- package/lib/TreeBrowser/TreeNode/index.js +25 -0
- package/lib/TreeBrowser/index.js +24 -0
- package/lib/TreeBrowser/props.js +7 -0
- package/package.json +15 -15
- package/src/TreeBrowser/README.md +2 -2
- package/src/TreeBrowser/TreeCollection/index.tsx +7 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/TreeBrowser/TreeCollection/index.d.ts +1 -1
- package/types/TreeBrowser/TreeCollection/index.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
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
|
-
## [8.36.1-snapshot-
|
|
6
|
+
## [8.36.1-snapshot-17](https://github.com/instructure/instructure-ui/compare/v8.36.0...v8.36.1-snapshot-17) (2023-04-14)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @instructure/ui-tree-browser
|
|
9
9
|
|
|
@@ -180,7 +180,10 @@ let TreeCollection = (_dec = withStyle(generateStyles, generateComponentTheme),
|
|
|
180
180
|
level: this.itemsLevel
|
|
181
181
|
});
|
|
182
182
|
return jsx("li", Object.assign({
|
|
183
|
-
id: key
|
|
183
|
+
id: key
|
|
184
|
+
// it's complaining about the aria-selected type which is there
|
|
185
|
+
// eslint-disable-next-line jsx-a11y/role-has-required-aria-props
|
|
186
|
+
,
|
|
184
187
|
role: "treeitem",
|
|
185
188
|
css: styles === null || styles === void 0 ? void 0 : styles.item,
|
|
186
189
|
tabIndex: -1,
|
|
@@ -254,7 +257,10 @@ let TreeCollection = (_dec = withStyle(generateStyles, generateComponentTheme),
|
|
|
254
257
|
});
|
|
255
258
|
return jsx("li", Object.assign({
|
|
256
259
|
key: `i${position}`,
|
|
257
|
-
tabIndex: -1
|
|
260
|
+
tabIndex: -1
|
|
261
|
+
// it's complaining about the aria-selected type which is there
|
|
262
|
+
// eslint-disable-next-line jsx-a11y/role-has-required-aria-props
|
|
263
|
+
,
|
|
258
264
|
role: "treeitem",
|
|
259
265
|
"aria-label": item.name,
|
|
260
266
|
css: styles === null || styles === void 0 ? void 0 : styles.item,
|
|
@@ -302,14 +308,19 @@ let TreeCollection = (_dec = withStyle(generateStyles, generateComponentTheme),
|
|
|
302
308
|
focused: this.state.focused === `collection_${id}`,
|
|
303
309
|
level
|
|
304
310
|
});
|
|
305
|
-
const ariaSelected = {
|
|
311
|
+
const ariaSelected = {
|
|
312
|
+
'aria-selected': void 0
|
|
313
|
+
};
|
|
306
314
|
if (this.props.selection) ariaSelected['aria-selected'] = this.props.selection === `collection_${id}`;
|
|
307
315
|
return isCollectionFlattened ? this.renderChildren() : jsx("li", Object.assign({
|
|
308
316
|
ref: el => {
|
|
309
317
|
this.ref = el;
|
|
310
318
|
},
|
|
311
319
|
css: styles === null || styles === void 0 ? void 0 : styles.treeCollection,
|
|
312
|
-
tabIndex: -1
|
|
320
|
+
tabIndex: -1
|
|
321
|
+
// it's complaining about the aria-selected type which is there
|
|
322
|
+
// eslint-disable-next-line jsx-a11y/role-has-required-aria-props
|
|
323
|
+
,
|
|
313
324
|
role: "treeitem",
|
|
314
325
|
"aria-label": this.props.name,
|
|
315
326
|
"aria-level": level,
|
package/es/TreeBrowser/props.js
CHANGED
|
@@ -24,6 +24,14 @@
|
|
|
24
24
|
|
|
25
25
|
import PropTypes from 'prop-types';
|
|
26
26
|
import { controllable } from '@instructure/ui-prop-types';
|
|
27
|
+
|
|
28
|
+
// props shared between TreeBrowser, TreeCollection
|
|
29
|
+
|
|
30
|
+
// props shared between TreeBrowser, TreeCollection, TreeButton
|
|
31
|
+
|
|
32
|
+
// For now it doesn't need the OtherHTMLAttributes, because the extra props
|
|
33
|
+
// get passed to TreeCollection and it doesn't handle them
|
|
34
|
+
// this is a sum type, so CompareObject is one of CompareCollection OR CompareItem
|
|
27
35
|
const propTypes = {
|
|
28
36
|
collections: PropTypes.object.isRequired,
|
|
29
37
|
items: PropTypes.object.isRequired,
|
|
@@ -14,6 +14,30 @@ var _styles = _interopRequireDefault(require("./styles"));
|
|
|
14
14
|
var _theme = _interopRequireDefault(require("./theme"));
|
|
15
15
|
var _props = require("./props");
|
|
16
16
|
var _dec, _dec2, _class, _class2;
|
|
17
|
+
/*
|
|
18
|
+
* The MIT License (MIT)
|
|
19
|
+
*
|
|
20
|
+
* Copyright (c) 2015 - present Instructure, Inc.
|
|
21
|
+
*
|
|
22
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
23
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
24
|
+
* in the Software without restriction, including without limitation the rights
|
|
25
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
26
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
27
|
+
* furnished to do so, subject to the following conditions:
|
|
28
|
+
*
|
|
29
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
30
|
+
* copies or substantial portions of the Software.
|
|
31
|
+
*
|
|
32
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
33
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
34
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
35
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
36
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
37
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
38
|
+
* SOFTWARE.
|
|
39
|
+
*/
|
|
40
|
+
/** @jsx jsx */
|
|
17
41
|
// Todo: merge TreeButton and TreeNode: TreeButton should be a special type of TreeNode
|
|
18
42
|
/**
|
|
19
43
|
---
|
|
@@ -15,6 +15,32 @@ var _styles = _interopRequireDefault(require("./styles"));
|
|
|
15
15
|
var _theme = _interopRequireDefault(require("./theme"));
|
|
16
16
|
var _props = require("./props");
|
|
17
17
|
var _dec, _dec2, _class, _class2;
|
|
18
|
+
/*
|
|
19
|
+
* The MIT License (MIT)
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) 2015 - present Instructure, Inc.
|
|
22
|
+
*
|
|
23
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
24
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
25
|
+
* in the Software without restriction, including without limitation the rights
|
|
26
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
27
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
28
|
+
* furnished to do so, subject to the following conditions:
|
|
29
|
+
*
|
|
30
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
31
|
+
* copies or substantial portions of the Software.
|
|
32
|
+
*
|
|
33
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
34
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
35
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
36
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
37
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
38
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
39
|
+
* SOFTWARE.
|
|
40
|
+
*/
|
|
41
|
+
/** @jsx jsx */
|
|
42
|
+
/** @jsxFrag React.Fragment */
|
|
43
|
+
// eslint-disable-next-line no-unused-vars
|
|
18
44
|
/**
|
|
19
45
|
---
|
|
20
46
|
parent: TreeBrowser
|
|
@@ -161,7 +187,10 @@ let TreeCollection = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.def
|
|
|
161
187
|
level: this.itemsLevel
|
|
162
188
|
});
|
|
163
189
|
return (0, _emotion.jsx)("li", Object.assign({
|
|
164
|
-
id: key
|
|
190
|
+
id: key
|
|
191
|
+
// it's complaining about the aria-selected type which is there
|
|
192
|
+
// eslint-disable-next-line jsx-a11y/role-has-required-aria-props
|
|
193
|
+
,
|
|
165
194
|
role: "treeitem",
|
|
166
195
|
css: styles === null || styles === void 0 ? void 0 : styles.item,
|
|
167
196
|
tabIndex: -1,
|
|
@@ -235,7 +264,10 @@ let TreeCollection = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.def
|
|
|
235
264
|
});
|
|
236
265
|
return (0, _emotion.jsx)("li", Object.assign({
|
|
237
266
|
key: `i${position}`,
|
|
238
|
-
tabIndex: -1
|
|
267
|
+
tabIndex: -1
|
|
268
|
+
// it's complaining about the aria-selected type which is there
|
|
269
|
+
// eslint-disable-next-line jsx-a11y/role-has-required-aria-props
|
|
270
|
+
,
|
|
239
271
|
role: "treeitem",
|
|
240
272
|
"aria-label": item.name,
|
|
241
273
|
css: styles === null || styles === void 0 ? void 0 : styles.item,
|
|
@@ -283,14 +315,19 @@ let TreeCollection = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.def
|
|
|
283
315
|
focused: this.state.focused === `collection_${id}`,
|
|
284
316
|
level
|
|
285
317
|
});
|
|
286
|
-
const ariaSelected = {
|
|
318
|
+
const ariaSelected = {
|
|
319
|
+
'aria-selected': void 0
|
|
320
|
+
};
|
|
287
321
|
if (this.props.selection) ariaSelected['aria-selected'] = this.props.selection === `collection_${id}`;
|
|
288
322
|
return isCollectionFlattened ? this.renderChildren() : (0, _emotion.jsx)("li", Object.assign({
|
|
289
323
|
ref: el => {
|
|
290
324
|
this.ref = el;
|
|
291
325
|
},
|
|
292
326
|
css: styles === null || styles === void 0 ? void 0 : styles.treeCollection,
|
|
293
|
-
tabIndex: -1
|
|
327
|
+
tabIndex: -1
|
|
328
|
+
// it's complaining about the aria-selected type which is there
|
|
329
|
+
// eslint-disable-next-line jsx-a11y/role-has-required-aria-props
|
|
330
|
+
,
|
|
294
331
|
role: "treeitem",
|
|
295
332
|
"aria-label": this.props.name,
|
|
296
333
|
"aria-level": level,
|
|
@@ -14,6 +14,31 @@ var _styles = _interopRequireDefault(require("../TreeButton/styles"));
|
|
|
14
14
|
var _theme = _interopRequireDefault(require("../TreeButton/theme"));
|
|
15
15
|
var _props = require("./props");
|
|
16
16
|
var _dec, _dec2, _class, _class2;
|
|
17
|
+
/*
|
|
18
|
+
* The MIT License (MIT)
|
|
19
|
+
*
|
|
20
|
+
* Copyright (c) 2021 - present Instructure, Inc.
|
|
21
|
+
*
|
|
22
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
23
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
24
|
+
* in the Software without restriction, including without limitation the rights
|
|
25
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
26
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
27
|
+
* furnished to do so, subject to the following conditions:
|
|
28
|
+
*
|
|
29
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
30
|
+
* copies or substantial portions of the Software.
|
|
31
|
+
*
|
|
32
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
33
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
34
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
35
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
36
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
37
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
38
|
+
* SOFTWARE.
|
|
39
|
+
*/
|
|
40
|
+
/** @jsx jsx */
|
|
41
|
+
// eslint-disable-next-line no-unused-vars
|
|
17
42
|
// Todo: merge TreeButton and TreeNode: TreeButton should be a special type of TreeNode
|
|
18
43
|
/**
|
|
19
44
|
---
|
package/lib/TreeBrowser/index.js
CHANGED
|
@@ -20,6 +20,30 @@ var _styles = _interopRequireDefault(require("./styles"));
|
|
|
20
20
|
var _theme = _interopRequireDefault(require("./theme"));
|
|
21
21
|
var _props = require("./props");
|
|
22
22
|
var _dec, _dec2, _class, _class2;
|
|
23
|
+
/*
|
|
24
|
+
* The MIT License (MIT)
|
|
25
|
+
*
|
|
26
|
+
* Copyright (c) 2015 - present Instructure, Inc.
|
|
27
|
+
*
|
|
28
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
29
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
30
|
+
* in the Software without restriction, including without limitation the rights
|
|
31
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
32
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
33
|
+
* furnished to do so, subject to the following conditions:
|
|
34
|
+
*
|
|
35
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
36
|
+
* copies or substantial portions of the Software.
|
|
37
|
+
*
|
|
38
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
39
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
40
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
41
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
42
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
43
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
44
|
+
* SOFTWARE.
|
|
45
|
+
*/
|
|
46
|
+
/** @jsx jsx */
|
|
23
47
|
/**
|
|
24
48
|
---
|
|
25
49
|
category: components
|
package/lib/TreeBrowser/props.js
CHANGED
|
@@ -31,6 +31,13 @@ var _controllable = require("@instructure/ui-prop-types/lib/controllable.js");
|
|
|
31
31
|
* SOFTWARE.
|
|
32
32
|
*/
|
|
33
33
|
|
|
34
|
+
// props shared between TreeBrowser, TreeCollection
|
|
35
|
+
|
|
36
|
+
// props shared between TreeBrowser, TreeCollection, TreeButton
|
|
37
|
+
|
|
38
|
+
// For now it doesn't need the OtherHTMLAttributes, because the extra props
|
|
39
|
+
// get passed to TreeCollection and it doesn't handle them
|
|
40
|
+
// this is a sum type, so CompareObject is one of CompareCollection OR CompareItem
|
|
34
41
|
const propTypes = {
|
|
35
42
|
collections: _propTypes.default.object.isRequired,
|
|
36
43
|
items: _propTypes.default.object.isRequired,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-tree-browser",
|
|
3
|
-
"version": "8.36.1-snapshot-
|
|
3
|
+
"version": "8.36.1-snapshot-17",
|
|
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": "8.36.1-snapshot-
|
|
27
|
-
"@instructure/ui-color-utils": "8.36.1-snapshot-
|
|
28
|
-
"@instructure/ui-test-locator": "8.36.1-snapshot-
|
|
29
|
-
"@instructure/ui-test-utils": "8.36.1-snapshot-
|
|
30
|
-
"@instructure/ui-themes": "8.36.1-snapshot-
|
|
26
|
+
"@instructure/ui-babel-preset": "8.36.1-snapshot-17",
|
|
27
|
+
"@instructure/ui-color-utils": "8.36.1-snapshot-17",
|
|
28
|
+
"@instructure/ui-test-locator": "8.36.1-snapshot-17",
|
|
29
|
+
"@instructure/ui-test-utils": "8.36.1-snapshot-17",
|
|
30
|
+
"@instructure/ui-themes": "8.36.1-snapshot-17"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@babel/runtime": "^7.
|
|
34
|
-
"@instructure/emotion": "8.36.1-snapshot-
|
|
35
|
-
"@instructure/shared-types": "8.36.1-snapshot-
|
|
36
|
-
"@instructure/ui-icons": "8.36.1-snapshot-
|
|
37
|
-
"@instructure/ui-img": "8.36.1-snapshot-
|
|
38
|
-
"@instructure/ui-prop-types": "8.36.1-snapshot-
|
|
39
|
-
"@instructure/ui-react-utils": "8.36.1-snapshot-
|
|
40
|
-
"@instructure/ui-testable": "8.36.1-snapshot-
|
|
41
|
-
"@instructure/ui-utils": "8.36.1-snapshot-
|
|
33
|
+
"@babel/runtime": "^7.21.0",
|
|
34
|
+
"@instructure/emotion": "8.36.1-snapshot-17",
|
|
35
|
+
"@instructure/shared-types": "8.36.1-snapshot-17",
|
|
36
|
+
"@instructure/ui-icons": "8.36.1-snapshot-17",
|
|
37
|
+
"@instructure/ui-img": "8.36.1-snapshot-17",
|
|
38
|
+
"@instructure/ui-prop-types": "8.36.1-snapshot-17",
|
|
39
|
+
"@instructure/ui-react-utils": "8.36.1-snapshot-17",
|
|
40
|
+
"@instructure/ui-testable": "8.36.1-snapshot-17",
|
|
41
|
+
"@instructure/ui-utils": "8.36.1-snapshot-17",
|
|
42
42
|
"keycode": "^2.2.1",
|
|
43
43
|
"prop-types": "^15.8.1"
|
|
44
44
|
},
|
|
@@ -465,7 +465,7 @@ class Example extends React.Component {
|
|
|
465
465
|
sorted: false
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
|
-
|
|
468
|
+
toggleSort = (event)=>{ this.setState({sorted:!this.state.sorted}) }
|
|
469
469
|
render () {
|
|
470
470
|
return (
|
|
471
471
|
<>
|
|
@@ -474,7 +474,7 @@ class Example extends React.Component {
|
|
|
474
474
|
<Checkbox
|
|
475
475
|
checked={this.state.sorted}
|
|
476
476
|
label="Sort"
|
|
477
|
-
onChange={this.
|
|
477
|
+
onChange={this.toggleSort}
|
|
478
478
|
/>
|
|
479
479
|
</FormFieldGroup>
|
|
480
480
|
</View>
|
|
@@ -236,6 +236,8 @@ class TreeCollection extends Component<
|
|
|
236
236
|
return (
|
|
237
237
|
<li
|
|
238
238
|
id={key}
|
|
239
|
+
// it's complaining about the aria-selected type which is there
|
|
240
|
+
// eslint-disable-next-line jsx-a11y/role-has-required-aria-props
|
|
239
241
|
role="treeitem"
|
|
240
242
|
css={styles?.item}
|
|
241
243
|
tabIndex={-1}
|
|
@@ -316,6 +318,8 @@ class TreeCollection extends Component<
|
|
|
316
318
|
<li
|
|
317
319
|
key={`i${position}`}
|
|
318
320
|
tabIndex={-1}
|
|
321
|
+
// it's complaining about the aria-selected type which is there
|
|
322
|
+
// eslint-disable-next-line jsx-a11y/role-has-required-aria-props
|
|
319
323
|
role="treeitem"
|
|
320
324
|
aria-label={item.name}
|
|
321
325
|
css={styles?.item}
|
|
@@ -372,7 +376,7 @@ class TreeCollection extends Component<
|
|
|
372
376
|
level
|
|
373
377
|
})
|
|
374
378
|
|
|
375
|
-
const ariaSelected: AriaSelectedType = {}
|
|
379
|
+
const ariaSelected: AriaSelectedType = { 'aria-selected': undefined }
|
|
376
380
|
if (this.props.selection)
|
|
377
381
|
ariaSelected['aria-selected'] =
|
|
378
382
|
this.props.selection === `collection_${id}`
|
|
@@ -386,6 +390,8 @@ class TreeCollection extends Component<
|
|
|
386
390
|
}}
|
|
387
391
|
css={styles?.treeCollection}
|
|
388
392
|
tabIndex={-1}
|
|
393
|
+
// it's complaining about the aria-selected type which is there
|
|
394
|
+
// eslint-disable-next-line jsx-a11y/role-has-required-aria-props
|
|
389
395
|
role="treeitem"
|
|
390
396
|
aria-label={this.props.name}
|
|
391
397
|
aria-level={level}
|