Skip to content

Commit 4deaf79

Browse files
authored
Merge pull request #459 from UiPath/fix/tree-select-a11y
fix(tree-select): add accessible props
2 parents 6c9617f + 8aec36d commit 4deaf79

File tree

7 files changed

+14
-4
lines changed

7 files changed

+14
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# v15.2.1 (2024-02-16)
2+
* **tree-select** add accessible props
3+
14
# v15.1.6 (2024-07-02)
25
* **grid** react on max filters count changes
36

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-components",
3-
"version": "15.2.0",
3+
"version": "15.2.1",
44
"author": {
55
"name": "UiPath Inc",
66
"url": "https://uipath.com"

projects/angular/components/ui-tree-select/src/ui-tree-item/ui-tree-item.component.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
[class.selected]="isSelected"
44
[ngClass]="'node-level-' + node.level"
55
[class.node-type-leaf]="!node.hasChildren"
6+
[attr.aria-level]="node.level"
7+
[attr.aria-expanded]="isExpanded"
8+
[attr.aria-selected]="isSelected"
69
matRipple
710
tabindex="-1"
811
role="treeitem"

projects/angular/components/ui-tree-select/src/ui-tree-item/ui-tree-item.component.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ export class UiTreeItemComponent implements FocusableOption {
3535
@Input()
3636
isSelected = false;
3737

38+
@Input()
39+
isExpanded = false;
40+
3841
@Output()
3942
expanded = new EventEmitter<void>();
4043

projects/angular/components/ui-tree-select/src/ui-tree-select.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
(expanded)="expand(node)"
2121
[node]="node"
2222
[attr.nodekey]="node.key"
23+
[isExpanded]="isExpanded(node)"
2324
[isSelected]="isSelected(node)">
2425
<ng-template *ngIf="itemTemplate"
2526
[ngTemplateOutlet]="itemTemplate"

projects/angular/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@uipath/angular",
3-
"version": "15.2.0",
3+
"version": "15.2.1",
44
"license": "MIT",
55
"author": {
66
"name": "UiPath Inc",

0 commit comments

Comments
 (0)