File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
projects/angular/components/ui-suggest/src Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 1616 [uiAutofocus] ="!isOpen && focus "
1717 [refocus] ="!isOpen && focus "
1818 [matRippleDisabled] ="isFormControl "
19- [attr.aria-label] ="placeholder "
19+ [attr.aria-label] ="ariaLabel ?? placeholder "
2020 [attr.aria-describedby] ="describedBy "
2121 [attr.aria-required] ="required "
2222 [attr.aria-disabled] ="disabled || readonly "
7474 < ng-template #chipsTemplate >
7575 < mat-chip-list #chipList
7676 [attr.tabindex] ="!disabled && !readonly ? 0 : null "
77- [attr.aria-label] ="placeholder "
77+ [attr.aria-label] ="ariaLabel ?? placeholder "
7878 [attr.aria-describedby] ="describedBy "
7979 [attr.aria-required] ="required "
8080 [attr.aria-disabled] ="disabled || readonly "
116116 [formControl] ="inputControl "
117117 [matChipInputFor] ="chipList "
118118 [attr.maxlength] ="maxLength "
119- [attr.aria-label] ="placeholder "
119+ [attr.aria-label] ="ariaLabel ?? placeholder "
120120 selectionLocation ="end "
121121 autocomplete ="off "
122122 aria-autocomplete ="list "
Original file line number Diff line number Diff line change @@ -110,6 +110,13 @@ export abstract class UiSuggestMatFormFieldDirective implements
110110 @Input ( )
111111 shouldHideTitle = false ;
112112
113+ /**
114+ * Sets aria-label on input or mat-chip-list element.
115+ *
116+ */
117+ @Input ( 'aria-label' )
118+ ariaLabel : string | null = null ;
119+
113120 /**
114121 * Set a custom size for the list items.
115122 *
You can’t perform that action at this time.
0 commit comments