Skip to content

Commit f102c0c

Browse files
committed
feat(cdk/a11y): fix test errors
1 parent cb76b8c commit f102c0c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cdk/tree/tree.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,7 @@ export class CdkTreeNode<T, K = T> implements FocusableOption, OnDestroy, OnInit
728728

729729
ngOnInit(): void {
730730
this._parentNodeAriaLevel = getParentNodeAriaLevel(this._elementRef.nativeElement);
731+
this._elementRef.nativeElement.setAttribute('aria-level', `${this.level + 1}`);
731732
}
732733

733734
ngOnDestroy() {

0 commit comments

Comments
 (0)