pattern-library checked

Ontario Design System Autocomplete

Documents autocomplete as a text input with popup suggestions, combobox semantics, keyboard behavior, and selection from matching values.

Open source

Pattern Decisions This Source Supports

Pattern Supported decision Required contract Claim note
Autocomplete Choose autocomplete for constrained or semi-constrained values. Typed text remains under user control. Ontario autocomplete guidance supports text input with popup suggestions, combobox semantics, keyboard behavior, and known-value selection.
Combobox Choose a combobox when a single field controls a popup of allowed or suggested values. The combobox element owns or controls its popup with aria-controls when the popup is available. Ontario guidance documents combobox role, popup connection, expanded state, autocomplete list behavior, option roles, and keyboard or mouse focus management.
Inaccessible custom select Flag this anti-pattern when a custom dropdown cannot be opened, navigated, selected, dismissed, and reviewed by keyboard. The trigger exposes an accessible name, current value, role, and expanded or collapsed state. Ontario documents autocomplete as a text input with popup suggestions, combobox semantics, keyboard behavior, and selection from matching values.

Evidence Role

This source is treated as pattern-library evidence. Use it to validate the decision rules above, not as a visual style reference.

Publisher: Ontario Design System. Last checked: .