...
Note: Where tags are subsequently being used to filter content, use the Filter Pane.
Types
Type | Usage | Image |
Browsable list |
|
Auto-complete |
|
Usage & Behavior
General guidelines
...
For the states of the tag menu list items, follow Lists.
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 |
Warning |
N/A |
N/A | |
Focused |
Interaction
Browsable list
...
Unless otherwise specified, see our general compliance information in Fundamentals - Accessibility.
Focus management
When a tag input is first selected, screen readers should state how many tags are currently applied.
...
For the behavior of the tag menu, follow Drop-down Menu.
Keyboard | Tag field trigger button | Tag pills |
---|---|---|
Tab |
| Navigates to the next component outside of the tag input. |
Shift + Tab | Reverse tab. | Reverse tab. |
Space | Selects the trigger button to open the tag menu. | N/A |
Enter | Selects the trigger button to open the tag menu. | Removes the pill, de-selecting the tag. Focus moves to the pill or trigger button immediately to its right. |
Delete and Backspace | N/A | Removes the pill, de-selecting the tag. Focus moves to the pill or trigger button immediately to its right. |
Esc | N/A | N/A |
Arrows | Left/Right: moves between the pills and trigger button. Up/Down:
| Left/Right: moves between the pills and trigger button. Up/Down:
|
Page up/Home | Navigates to the first pill. | Navigates to the first pill. |
Page down/End | N/A | Navigates to the trigger button. |
Auto-complete tag field
For the behavior of the tag menu, follow Live Search.
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 | Moves focus to the text area. |
Esc | N/A | N/A |
Delete |
| Removes the pill, de-selecting the tag. |
Arrows | Left/Right:
Up/Down: moves focus to the suggested search results. | Left/Right: moves between the pills. Up/Down: N/A |
Page up/Home | Navigates to the first pill. | Navigates to the first pill. |
Page down/End | N/A | Navigates to the text area. |
a-z, A-Z | Acts as text input. | Automatically moves focus to the text area and acts as text input. |
Design
Zeplin link |
Screen thumbnail
<<Short Zeplin link. YouUse this >>
<<Screen with 200 width>>
Code
<<a box containing the code - discuss with Femi>>
Code
...