From 5bacca0319ea0a15389221706079797bc577932f Mon Sep 17 00:00:00 2001 From: Matthieu Riegler Date: Thu, 28 May 2026 01:00:07 +0200 Subject: [PATCH] docs: align `main` and `22.0.x` for aria guides --- adev/src/content/guide/aria/autocomplete.md | 89 ++++++++++++++------- 1 file changed, 60 insertions(+), 29 deletions(-) diff --git a/adev/src/content/guide/aria/autocomplete.md b/adev/src/content/guide/aria/autocomplete.md index 8646256a97db..e7f629a124f4 100644 --- a/adev/src/content/guide/aria/autocomplete.md +++ b/adev/src/content/guide/aria/autocomplete.md @@ -5,7 +5,7 @@ An accessible input field that filters and suggests options as users type, helping them find and select values from a list. - + ## Usage @@ -52,7 +52,7 @@ Angular's autocomplete provides a fully accessible combobox implementation with: - **Keyboard Navigation** - Navigate options with arrow keys, select with Enter, close with Escape - **Screen Reader Support** - Built-in ARIA attributes for assistive technologies -- **Three Filter Modes** - Choose between auto-select, manual selection, or highlighting behavior +- **Dynamic Highlight Behavior** - Built-in support for inline selection suggestions - **Signal-Based Reactivity** - Reactive state management using Angular signals - **Popover API Integration** - Leverages the native HTML Popover API for optimal positioning - **Bidirectional Text Support** - Automatically handles right-to-left (RTL) languages @@ -63,7 +63,7 @@ Angular's autocomplete provides a fully accessible combobox implementation with: Users typing partial text expect immediate confirmation that their input matches an available option. Auto-select mode updates the input value to match the first filtered option as users type, reducing the number of keystrokes needed and providing instant feedback that their search is on the right track. - + ### Manual selection mode Manual selection mode keeps the typed text unchanged while users navigate the suggestion list, preventing confusion from automatic updates. The input only changes when users explicitly confirm their choice with Enter or a click. - + ### Highlight mode Highlight mode allows the user to navigate options with arrow keys without changing the input value as they browse until they explicitly select a new option with Enter or click. - + ## APIs ### Combobox Directive -The `ngCombobox` directive provides the container for autocomplete functionality. +The `ngCombobox` directive is applied directly onto the editable text `` or `