Skip to content

Commit 6425ec7

Browse files
Andrea-Guevaragithub-actions[bot]
authored andcommitted
Adding the aria-label attribute to buttons
(cherry picked from commit 9565f9b)
1 parent 60ff9a9 commit 6425ec7

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

src/app/shared/form/vocabulary-treeview/vocabulary-treeview.component.html

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,20 @@
66
[attr.aria-label]="'vocabulary-treeview.search.form.search-placeholder' | translate"
77
[placeholder]="'vocabulary-treeview.search.form.search-placeholder' | translate">
88
<div class="input-group-append" id="button-addon4">
9-
<button class="btn btn-outline-primary" type="button" (click)="search()" [disabled]="!isSearchEnabled()">
9+
<button class="btn btn-outline-primary" type="button" (click)="search()" [disabled]="!isSearchEnabled()"
10+
[attr.aria-label]="'vocabulary-treeview.search.form.search' | translate">
1011
{{'vocabulary-treeview.search.form.search' | translate}}
1112
</button>
12-
<button class="btn btn-outline-secondary" type="button" (click)="reset()">
13+
<button class="btn btn-outline-secondary" type="button" (click)="reset()"
14+
[attr.aria-label]="'vocabulary-treeview.search.form.reset' | translate">
1315
{{'vocabulary-treeview.search.form.reset' | translate}}
1416
</button>
15-
<button *ngIf="showAdd && this.vocabularyOptions.closed" class="btn btn-outline-primary" type="button" (click)="add()">
17+
<button *ngIf="showAdd && this.vocabularyOptions.closed" class="btn btn-outline-primary" type="button" (click)="add()"
18+
[attr.aria-label]="'vocabulary-treeview.search.form.add' | translate">
1619
{{'vocabulary-treeview.search.form.add' | translate}}
1720
</button>
18-
<button class="btn btn-outline-primary" type="button" (click)="add()" [disabled]="this.vocabularyOptions.closed">
21+
<button class="btn btn-outline-primary" type="button" (click)="add()" [disabled]="this.vocabularyOptions.closed"
22+
[attr.aria-label]="'vocabulary-treeview.search.form.add' | translate">
1923
{{'vocabulary-treeview.search.form.add' | translate}}
2024
</button>
2125
</div>
@@ -91,13 +95,15 @@ <h2 *ngIf="(loading | async) !== true && dataSource.data.length === 0" class="h4
9195
</cdk-tree-node>
9296

9397
<cdk-tree-node *cdkTreeNodeDef="let node; when: isLoadMore" cdkTreeNodePadding>
94-
<button class="btn btn-outline-secondary btn-sm" (click)="loadMore(node.loadMoreParentItem)">
98+
<button class="btn btn-outline-secondary btn-sm" (click)="loadMore(node.loadMoreParentItem)"
99+
[attr.aria-label]="'vocabulary-treeview.load-more' | translate">
95100
{{'vocabulary-treeview.load-more' | translate}}...
96101
</button>
97102
</cdk-tree-node>
98103

99104
<cdk-tree-node *cdkTreeNodeDef="let node; when: isLoadMoreRoot">
100-
<button class="btn btn-outline-secondary btn-sm" (click)="loadMoreRoot(node)">
105+
<button class="btn btn-outline-secondary btn-sm" (click)="loadMoreRoot(node)"
106+
[attr.aria-label]="'vocabulary-treeview.load-more' | translate">
101107
{{'vocabulary-treeview.load-more' | translate}}...
102108
</button>
103109
</cdk-tree-node>

0 commit comments

Comments
 (0)