Skip to content

Commit

Permalink
[ACS-9228] a11y testing: Search Page / Buttons must have discernible …
Browse files Browse the repository at this point in the history
…text (#4376)
  • Loading branch information
dominikiwanekhyland authored Feb 7, 2025
1 parent 9f3486b commit 85e0b43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions projects/aca-content/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,9 @@
"MODIFIER": "Modifier",
"CREATE_DATE": "Created date"
},
"CLOSE_BUTTON": {
"ARIA_LABEL": "Close search"
},
"FACET_FIELDS": {
"CREATOR": "Creator",
"MODIFIER": "Modifier",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<div matSuffix>
<mat-icon class="app-suffix-icon">arrow_drop_down</mat-icon>

<button class="aca-search-input--close-button" mat-icon-button (click)="exitSearch()">
<button class="aca-search-input--close-button" mat-icon-button [attr.aria-label]="'SEARCH.CLOSE_BUTTON.ARIA_LABEL' | translate" (click)="exitSearch()">
<mat-icon class="app-suffix-icon">close</mat-icon>
</button>
</div>
Expand Down

0 comments on commit 85e0b43

Please sign in to comment.