Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Commit fa21ccd

Browse files
Googlernshahan
authored andcommitted
Add aria-controls to Material Auto Suggest input to complete a11y guidelines for combobox role.
PiperOrigin-RevId: 249907508
1 parent 29714a2 commit fa21ccd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

angular_components/lib/material_input/material_auto_suggest_input.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
role="combobox"
2626
[inputAriaLabel]="ariaLabel"
2727
[inputAriaOwns]="showPopup ? popupId : null"
28+
[inputAriaControls]="showPopup ? popupId : null"
2829
inputAriaHasPopup="listbox"
2930
[inputAriaExpanded]="showPopup"
3031
[inputAriaActivedescendent]="showPopup ? activeModel.activeId : null"

0 commit comments

Comments
 (0)