...
Tag inputs allow multiple metadata tags to be added to a piece of content from a pre-defined set.
Categorising content with tags can make it easier to find, instigate workflows, or define and control access permissions. Common tagsets include department, region, product, and personal information such as email addresses.
...
Note: Where tags are subsequently being used to filter content, use the Filter Pane.
Types
Type | Usage | Image |
Browsable list |
| |
Auto-complete |
|
...
For both input types, search should follow the logic and behavior of Live Search.
Tag field
Pills should be arranged left-to-right, top to bottom, in the order in which the tags were applied.
The width of each pill will depend on its content, within minimum and maximum limits.
Where a tag label exceeds the maximum pill width it should be truncated, with the full label shown in a Tooltip on hover.
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 tag field may optionally expand as more tags are applied. A limit may be set to the field height.Where
When the maximum field height is reached and there is no more space for additional pills, a Scrollbar should be added to the field
.
Pills should be arranged left-to-right, top to bottom, in the order in which the tags were applied.
...
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.
...
For the states of the tag menu list items, follow :
...
Multi-select Checkbox List (Browsable list).
State | Browsable list tag field | Browsable list - tag pills | Auto-complete tag field | Auto-complete - tag pills |
---|---|---|---|---|
Regular | ||||
Hover | On hover over Close icon button: | |||
Active | ||||
Disabled | ||||
Error | N/A | N/A | ||
Warning | N/A | N/A | ||
Focused |
...
Keyboard | Tag field text area | Applied tag pills |
---|---|---|
Tab |
| Navigates to the next component |
Shift + Tab | Reverse tab | Reverse tab |
Space | Acts as text input | N/A |
Enter | N/A | In outlook it returns focus to text input? |
Esc | N/A | N/A |
Delete | Acts as text input. After all text has been deleted, removes the last added pill. | Removes the pill, de-selecting the tag. |
Arrows | Left/Right: act as arrows within the text. From the left of the text area, left moves to the last pill. Up/Down: moves focus to the auto-suggest results | Left/Right: moves between the pills. Up/Down: N/A |
a-z, A-Z | Acts as text input. | Automatically moves focus to the text area. |
...