Dropdown
A dropdown displays a list of selectable options in a floating panel.
Recipes
Section titled “Recipes”Select List
Section titled “Select List”-
Powertrain333 miOption 1 -
Powertrain333 miOption 2 -
Powertrain333 miOption 3
Checkbox List
Section titled “Checkbox List”Accessibility
Section titled “Accessibility”The dropdown follows the WAI-ARIA Listbox pattern.
Roles & attributes
Section titled “Roles & attributes”| Element | Attributes |
|---|---|
| Trigger button | aria-haspopup="listbox", aria-expanded, aria-labelledby (pointing to a visible label) |
| List container | role="listbox". Add aria-multiselectable="true" for checkbox-style dropdowns. |
| Each option | role="option". Set aria-selected="true" on the active option. |
Use aria-activedescendant on the listbox to communicate the currently focused option without moving DOM focus.
Keyboard interaction
Section titled “Keyboard interaction”| Key | Action |
|---|---|
| Enter / Space | Open dropdown or select the focused option |
| ↑ / ↓ | Move focus between options |
| Home / End | Move focus to first / last option |
| Escape | Close dropdown, return focus to trigger |