Skip to content

Commit 8522e4e

Browse files
committed
Refactoring vol.2
1 parent f887127 commit 8522e4e

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/app/item-page/simple/field-components/clarin-item-versions-field/clarin-item-versions-field.component.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,20 @@
77
(click)="toggleVersionHistory()"
88
role="button"
99
tabindex="0"
10-
[attr.aria-expanded]="showVersionHistory">
10+
[attr.aria-expanded]="showVersionHistory"
11+
aria-controls="version-history-content"
12+
[attr.aria-label]="(showVersionHistory ? 'Collapse' : 'Expand') + ' version history'">
1113
<b class="mr-1">{{ "item.version.history.head" | translate }}</b>
1214
<i class="fas" [ngClass]="showVersionHistory ? 'fa-chevron-up' : 'fa-chevron-down'"></i>
1315
</div>
1416
</div>
1517

1618
<!-- Collapsible Content -->
17-
<div class="col-lg-9 collapse" [ngClass]="{'show': showVersionHistory}">
19+
<div
20+
id="version-history-content"
21+
class="col-lg-9 collapse"
22+
[ngClass]="{'show': showVersionHistory}"
23+
[attr.aria-hidden]="!showVersionHistory">
1824
<div *ngIf="(versionsDTO$ | async) as versionsDTO">
1925
<div *ngIf="(versionRD$ | async)?.payload as itemVersion">
2026
<ul class="list-unstyled dropdown-versions">

0 commit comments

Comments
 (0)