diff --git a/README.md b/README.md index a63a6a8..31b8959 100644 --- a/README.md +++ b/README.md @@ -122,6 +122,9 @@ Furthermore, it provides the following inputs: /** Disables scrolling to active options when option list changes. Useful for server-side search */ @Input() disableScrollToActiveOnOptionsChanged = false; + + /** Adds 508 screen reader support for search box */ + @Input() ariaLabel = 'dropdown search'; ``` #### Customize clear icon diff --git a/src/app/mat-select-search/mat-select-search.component.html b/src/app/mat-select-search/mat-select-search.component.html index 931c099..04a1804 100755 --- a/src/app/mat-select-search/mat-select-search.component.html +++ b/src/app/mat-select-search/mat-select-search.component.html @@ -15,6 +15,7 @@ (input)="onInputChange($event.target.value)" (blur)="onBlur($event.target.value)" [placeholder]="placeholderLabel" + [attr.aria-label]="ariaLabel" />