Skip to main content
InterviewHubPRO
Section Overview
Q44

Question 44 of 50

Part 3: Advanced Internals, Scale & Production Architecture (Senior / Lead)

88%
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:

  1. <input role="combobox" aria-expanded="false" aria-controls="results-list" aria-autocomplete="list">.
  2. Dropdown container: <ul id="results-list" role="listbox">.
  3. Options: <li role="option" id="opt-1" aria-selected="true">.
  4. 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.