Web Accessibility & WCAG (50 Qs)•Part 3: Advanced Internals, Scale & Production Architecture (Senior / Lead)
WAI-ARIA Combobox Pattern for Accessible Auto-complete.
senior LevelSystem Design
In Simple Words: An accessible search auto-complete combobox requires:
<input role="combobox" aria-expanded="false" aria-controls="results-list" aria-autocomplete="list">.- Dropdown container:
<ul id="results-list" role="listbox">. - Options:
<li role="option" id="opt-1" aria-selected="true">. - Up/Down arrow keys move active selection, updating
aria-activedescendant="opt-1"on the input so screen readers announce the selected option without moving focus out of the input field.