Skip to content

Commit

Permalink
Merge pull request #2246 from doana/search-filter-accessibility
Browse files Browse the repository at this point in the history
Add filter name to search filter button aria-label.
  • Loading branch information
tdonohue committed Jun 2, 2023
2 parents 5a9e9fd + 9a8dfc2 commit ef9fd36
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -3,7 +3,7 @@
<button (click)="toggle()" (focusin)="focusBox = true" (focusout)="focusBox = false"
class="filter-name d-flex" [attr.aria-controls]="regionId" [id]="toggleId"
[attr.aria-expanded]="false"
[attr.aria-label]="((collapsed$ | async) ? 'search.filters.filter.expand' : 'search.filters.filter.collapse') | translate"
[attr.aria-label]="(((collapsed$ | async) ? 'search.filters.filter.expand' : 'search.filters.filter.collapse') | translate) + ' ' + (('search.filters.filter.' + filter.name + '.head') | translate | lowercase)"
[attr.data-test]="'filter-toggle' | dsBrowserOnly"
>
<h5 class="d-inline-block mb-0">
Expand Down

0 comments on commit ef9fd36

Please sign in to comment.