Skip to content

AutoSuggest

What component has

Keyboard support

Keyboard support
KeyFunction
TabMoves focus to the next focusable element.
Shift + TabMoves focus to the previous focusable element.
Space , Enter , Down ArrowWhen focus is on the AutoSuggest trigger, opens the dropdown with options.
Up Arrow , Down ArrowMoves focus between the options in the dropdown. If focus is on the last/first option, moves focus to the first/last option respectively.
Space , EnterSelects the option and closes the dropdown.
EscCloses the dropdown and returns focus to the AutoSuggest trigger.

See detailed information for the controlling dropdown with the keyboard in the Keyboard control guide.

Roles and attributes

Resources

A11y style guide gives recommendations for the accessible select menus and lists.

Other recommendations

See more accessibility recommendations in the common Accessibility guide.

Automated screen reader testing

Intergalactic v15.29.0, React v18.2.0, Playwright v1.25.1, Guidepup v0.13.1, MacOS Monterey 12.

Running screen reader against this file.

1. Screen reader goes into the active element.
2. Screen reader says "In web content Your website Your website".
3. Screen reader goes to the next element.
4. Screen reader says "Type domain or URL list box pop up Menu pop-up combo box".
5. Screen reader goes into the active element.
6. Screen reader says "In Menu pop-up combo box".
7. Screen reader goes into the active element.
8. Screen reader types "semrush".
9. Screen reader says "semrush".
10. Screen reader goes out of active element.
11. Screen reader goes out of active element.
12. Screen reader says "Out of web content".
13. Screen reader presses the "Tab" button.
14. Screen reader says "Entering Semrush list box. Semrush group".
15. Screen reader goes into the active element.
16. Screen reader says "In Semrush list box Semrush .com text (1 of 1)".
17. Screen reader goes to the next element.
18. Screen reader says "Semrush .com text (1 of 1)".
19. Screen reader goes to the next element.
20. Screen reader presses the "Control+Option+Space" button.
21. Screen reader says "web content".
22. Screen reader goes into the active element.
23. Screen reader goes to the next element.
24. Screen reader says "semrush.com list box pop up Menu pop-up combo box".
1. Screen reader goes into the active element.
2. Screen reader says "In web content Your website Your website".
3. Screen reader goes to the next element.
4. Screen reader says "Type domain or URL list box pop up Menu pop-up combo box".
5. Screen reader goes into the active element.
6. Screen reader says "In Menu pop-up combo box".
7. Screen reader goes into the active element.
8. Screen reader types "semrush".
9. Screen reader says "semrush".
10. Screen reader goes out of active element.
11. Screen reader goes out of active element.
12. Screen reader says "Out of web content".
13. Screen reader presses the "Tab" button.
14. Screen reader says "Entering Semrush list box. Semrush group".
15. Screen reader goes into the active element.
16. Screen reader says "In Semrush list box Semrush .com text (1 of 1)".
17. Screen reader goes to the next element.
18. Screen reader says "Semrush .com text (1 of 1)".
19. Screen reader goes to the next element.
20. Screen reader presses the "Control+Option+Space" button.
21. Screen reader says "web content".
22. Screen reader goes into the active element.
23. Screen reader goes to the next element.
24. Screen reader says "semrush.com list box pop up Menu pop-up combo box".

Released under the MIT License.

Released under the MIT License.