Skip to content

Commit

Permalink
[ACS-5341] accessibility fix (#8668)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikita-web-ua committed Jun 15, 2023
1 parent c072fa7 commit eda42a6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
</mat-chip>
<input
placeholder="{{ 'SEARCH.FILTER.ACTIONS.ADD_OPTION' | translate }}"
aria-controls="adf-search-chip-autocomplete"
#optionInput
[formControl]="formCtrl"
[matAutocomplete]="auto"
Expand All @@ -19,7 +20,7 @@
[attr.aria-label]="'SEARCH.FILTER.ACTIONS.ADD_OPTION' | translate"
(matChipInputTokenEnd)="add($event)">
</mat-chip-list>
<mat-autocomplete #auto="matAutocomplete" (optionSelected)="selected($event)">
<mat-autocomplete #auto="matAutocomplete" (optionSelected)="selected($event)" id="adf-search-chip-autocomplete">
<mat-option [disabled]="option | adfIsIncluded: selectedOptions" *ngFor="let option of filteredOptions$ | async"
[ngClass]="(option | adfIsIncluded: selectedOptions) && 'adf-autocomplete-added-option'">
{{option}}
Expand Down

0 comments on commit eda42a6

Please sign in to comment.