Table of Contents |
---|
...
Usage & Behavior
General guidelines
Structure
The drop-down consists of:
Trigger area. Selecting the drop-down trigger should open or close the options list. Includes:
a text area, with the currently-selected option(s) or default text.
a drop-down arrow.
Options list. Displays the list of available values, consisting of:
Options. Must include a text label, but can additionally have an icon. Keep the labels short, because the list uses single lines only.
Selection indicator. A blue check mark should be shown to the left of the selected option.
Icon buttons (optional). These add extra actions for each list option, and appear on hover. A tooltip describing the action should be displayed on hover.
Preceding label (optional). A label to the left of the trigger area, to inform the user about what is included in the options list.
...
Users need to select one option exclusively from a short list. (Where the user can select multiple options, see Multi-select drop-down below).
There should be a minimum of 3 options.
The user may select an item either by using the mouse and clicking, or by using the Up and Down keys to navigate between options and Enter to select.
On selection of an option, the options list will close.
The selected option will be shown in the trigger area.
States
State | Visual | Visual Searchable drop-down | VisualMulti-select drop-down | Visual | |
---|---|---|---|---|---|
Regular | |||||
Hover | |||||
Active | |||||
Selected | |||||
Disabled | |||||
Error | |||||
Warning | |||||
Focused, Regular | |||||
Focused, Hover | |||||
Focused, Active | |||||
Focused, Disabled |
Interaction
DescriptionInteraction | Visual | Details |
---|---|---|
Regular stateNone | The Select field always displays either:
See the Default State section above. | |
Hover | ||
Click the trigger area |
| |
Select an itemoption | On selecting an option:
| |
Click anywhere outside of the drop-down |
| |
View options list with an existing selection |
|
...
The search field will be auto-focused when the options list opens, so that the user may start searching immediately.
The search field will operate as a Live Search.
The user may select an item either by using the mouse and clicking, or by using the Up and Down keys to navigate between options and Enter to select.
On selection, the options list will close.
The selected item will be presented in the trigger area.
The search field is cleared each time the options list is closed.
Interaction
DescriptionInteraction | Visual | Details |
---|---|---|
Click the trigger area |
| |
Enter search |
| |
Select an itemoption | On selecting an option:
| |
View options list with an existing selection |
|
...
The user is expected to select all or most of the items.
The list is very long (so it will allow the user to easily clear all selections).
Interaction
StepInteraction | Visual | DescriptionDetails |
---|---|---|
Click the trigger area |
| |
Select an itemoption |
| |
Multiple items selected |
| |
Click on the trigger area, or |
|
...
Multi-select Searchable drop-down
Interaction
StepInteraction | Visual | DescriptionDetails |
---|---|---|
Click the trigger area |
| |
Enter Search |
| |
Select an itemoption |
| |
Delete search string |
|
Validations and errors
Please refer to the Field validation page for more information.
An example for a A drop-down menu with a warning:
...
An example for a A drop-down menu with an error:
...
Best practices
Use when:
The options list is small-medium in size.
Space is constrained.
Use the searchable type when:
there are more than 15 options.
when users are expected to know what they are looking for, and are likely to be aware of how the option is labelled.
Don’t use when:
The list has fewer than 3 options.
The list has fewer than 7 options and the user needs to see them all at once. Use radio buttons or Check boxes instead.
The user needs to enter a value which is not in the list. Use a combo box instead.
The list is large. Use Dual List Selector or List instead.
General:
Only show a scrollbar when the list has over 8 items.
Keep the text values as short as possible, because the list uses single lines only.
The option There is no horizontal scrolling in the option list.
The options list should adapt its length to the longest entry by default, but values that which are too long may be truncated, with a tooltip displaying the full text (not recommended). The option list may not have a horizontal scroll.
Place options that represent All or None at the beginning of the list, regardless of the sort order of the remaining items.
Do not allow the control to auto-adjust based on the selection.
If there’s no preceding label, or if the label is not indicative enough, the {NameOfEntity} should be added within the drop-down, after the number of selections. For example, 2 categories selected:
...