81901: Add aria-expanded attribute to expandable items

This commit is contained in:
Yura Bondarenko
2021-08-16 16:48:32 +02:00
parent c63d049d55
commit 214833af68

View File

@@ -3,7 +3,8 @@
value: ((expanded | async) ? 'endBackground' : 'startBackground'),
params: {endColor: (sidebarActiveBg | async)}}">
<a class="nav-item nav-link d-flex flex-row flex-nowrap"
attr.aria-labelledby="sidebarName-{{section.id}}"
[attr.aria-labelledby]="'sidebarName-' + section.id"
[attr.aria-expanded]="expanded | async"
[title]="('menu.section.icon.' + section.id) | translate"
(click)="toggleSection($event)"
(keyup.space)="$event.stopPropagation(); toggleSection($event)"