Table of Contents | ||||
---|---|---|---|---|
|
...
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
...
Focus management
Browsable list
When the trigger button is first selected, screen readers should state how many tags are currently applied.
Keyboard | Tag field trigger button | Applied tag pills |
|
---|---|---|---|
Bits not covered in the drop-down menu page | |||
Tab |
| Navigates to the next component. |
|
Shift + TabReverse 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 | 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
| Drop-down says “Closes the menu without updating the selection”, but doesn’t cover the search field. |
Arrows | Left/Right: moves between the pills and trigger button. Up/Down:
| Left/Right: moves between the pills and trigger button. Up/Down:
|
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. |
...