Table of Contents |
---|
...
Usage & Behavior
General guidelines
Structure
The drop-down consists of:
...
Options - must include a text label, but can additionally have an icon. Keep the labels short, because the list uses single lines only.
In case selecting an option is not mandatory, a No selection item should appear at the top of the options list. This will allow users to avoid selection or deselect a previously selected option.
Selection indicator - a blue check mark should be shown to the left of the selected option.
Action icons (optional) - these add extra actions for each list option, and appear on hover. A tooltip describing the action should be displayed on hoveruser interaction.
Status icons (optional) - these add extra information for each list option and always appear.
Dividers or group headers may also be used to organise the options list.
...
Interaction | Visual | Details |
---|---|---|
Hovering anywhere on the trigger area |
| |
Clicking anywhere on the trigger area |
| |
Selecting an option |
| |
Viewing options list with an existing selection |
| |
Selecting a No selection option |
| |
Clicking anywhere outside the drop-down |
| |
Focusing or hovering on a list option when its row contains action and status icons |
| |
Focusing or hovering over an action or status icon |
|
Searchable drop-down
A Search field should be added:
...
Interaction | Visual | Details |
---|---|---|
Click the trigger area |
| |
Enter Search |
| |
Select an option |
| |
Delete search string |
|
Validations and errors
Please refer to the Field Validation page for more information.
A drop-down with a warning:
...
Keyboard | Trigger area | Options list |
---|---|---|
Tab | Navigates to the next component. |
|
Shift + Tab | Navigates to the previous component. |
|
Space | Opens the menu. |
|
Enter | Opens the menu. |
|
Esc | N/A | Closes the menu without updating the selection. |
Arrows | Up/Down - Opens the menu. |
Holding down the key will scroll continuously. |
Page Up/Home | N/A | Navigates to the first item. |
Page Down/End | N/A | Navigates to the last item. |
...