...
Type | Usage | Image |
Browsable list |
| |
Auto-complete |
|
Usage & Behavior
General guidelines
...
the tag field, containing:
applied tag pills, showing the tags already selected.
a trigger button to open the tag menu, shown to the right of the applied tag pills.
a tag menu, containing:
...
For both input types, search should follow the logic and behavior of Live Search.
Tag field
The width of each pill will depend on its content, within minimum and maximum limits.
The trigger button should move as tags are applied, always being shown to the right of the last applied tag pill. (Browsable list only).
The width of each pill will depend on its content, within minimum and maximum limits.The tag field may optionally expand as more tags are applied. A limit may be set to the field height.
Where there is no more space for additional pills, a Scrollbar should be added to the field to show additional rows of pills.
Pills should be arranged left-to-right, top to bottom, in the order in which the tags were added.
...
Tag menu ordering
Browsable list:
The list of tags should be in a logical order to make them easy to scan, such as alphabetically, numerically, or by frequency of use.
The tag order should remain the same when a search is applied.
Auto-complete:
When the tag field is first selected, the tags should be ordered by frequency or recency.
After search, the results should be ordered by relevance.
Pill ordering
- Pills should be arranged left-to-right in the order in which the tags were added
.
States
For the states of the tag menu list items, follow:
...
State | Browsable list tag field | Auto-complete tag field | Applied tag pill |
Regular | |||
Hover | On hover over Close icon button: | ||
Active | |||
Disabled | |||
Error | N/A? | ||
Warning | N/A? | ||
Focused |
Interaction
Browsable list
...
Unless otherwise specified, see our general compliance information in Fundamentals - Accessibility.
Focus management
Browsable list
...
KeyboardDescription | Tag field | Tag menu |
---|---|---|
Tab |
|
|
Shift + Tab | Reverse tab | Reverse tab |
Space |
|
|
Enter |
|
|
Delete | On the trigger button: removes the last pill, de-selecting the tag. On a pill: removes the pill, de-selecting the tag. |
|
Esc | On the trigger button: N/A On a pill: removes the pill, de-selecting the tag. |
|
Arrows | Left/Right: move between the pills and trigger button. |
|
Auto-complete tag field
Keyboard | Description |
---|---|
Tab |
|
Shift + Tab | Reverse tab |
Space | On a pill: focuses the pill (for tooltips) On the text area: as text input. |
Enter | On a pill: focuses the pill (for tooltips). On the text area: opens the tag menu. |
Esc | Removes the pill, de-selecting the tag. |
Delete | On a pill: removes the pill, de-selecting the tag. On the text area: as text input. After all text deleted, removes the last added pill. |
Arrows | Left/Right: move between the pills and text area. |
a-z, A-Z | Automatically moves focus/cursor to right of the last pill and starts to search. |
...
Auto-complete tag menu
Follow https://kanasoftware.jira.com/wiki/spaces/UserExp/pages/1273110308/List#Focus-management
...