Appearance
Selection action bar
The row of bulk actions above a list, acting on the items that are selected.
bulkoperations-selectionactionbar--selectedOpen in Storybook ↗When to use
- A list where people select items to act on them together: edit, export, delete.
- A picker, where the selection is the answer: the bar then holds one Confirm selection button.
When not to use
- An action on one item: use the row's split button or overflow menu.
- A list without selection: a list with no actions on a selection has no checkboxes and no bar.
Anatomy
- Selection count: Selection: 2, in bold. With nothing selected it reads Selection: nothing selected in muted ink.
- Off-page note (optional): 3 selected on other pages, with a Clear selection link (
--text-label, underlined). It shows only when selected items sit on other pages. - Actions: every bulk action is its own small secondary button, with its icon and a verb label. Destructive actions (
tone: Danger) use--color-danger-inkand sit last. Actions that open a submenu stay behind a labelled Actions overflow menu.
The bar sits on its own row under the list's results band, inside the results panel. It has no surface of its own; items are --selection-bar-gap apart in --text-ui and wrap when the row is narrow. Selecting or clearing the whole page is the list header's Select page checkbox, not part of the bar.
Variants
| Variant | Where | Actions |
|---|---|---|
| Default | lists in the main library and in detail panels | one button per action |
| Confirm selection | pickers | one commit button, Confirm selection |
| Small screen | below 48rem | more than one action folds into a ⋮ menu that opens as a bottom sheet |
bulkoperations-selectionactionbar--confirm-selectionOpen in Storybook ↗bulkoperations-selectionactionbar--small-screenOpen in Storybook ↗The page's own list (not a relation list or a search) moves its create action out of the bar: it becomes a primary pill next to the page title. In a detail panel, add actions move to the list's own header.
States
| State | What you see | Trigger |
|---|---|---|
| Nothing selected | muted Selection: nothing selected; actions that need a selection are disabled, with a help icon and the reason in their tooltip | — |
| Items selected | bold Selection: n; those actions turn on | checkboxes in the list |
| Selection on other pages | n selected on other pages and Clear selection | paging after selecting |
| Action unavailable | the button stays visible but disabled; its tooltip says why | wrong selection size, wrong mode |
| Hidden | no bar at all | no selection and no actions to offer |
bulkoperations-selectionactionbar--statesOpen in Storybook ↗Keyboard & accessibility
- The bar is a
role="toolbar"named Actions on selection. - The count is a
role="status"region, so a screen reader hears each change. - Every control is a real button, reachable with Tab. Clear selection is a button too.
- An action that acts on the selection carries the count in its accessible name: Delete (2 selected).
- A disabled action keeps its reason in a tooltip on its help icon.
Content
- Action labels start with a verb: Export to CSV, Bulk edit, Delete.
- Whether an action is destructive comes from its configuration (
tone: Danger), never from its label. - Translation keys:
bulk-operations.selection-count,bulk-operations.nothing-selected,bulk-operations.selected-on-other-pages,bulk-operations.clear-selection,bulk-operations.action-for-selection.
Related
Entity list element · Checkbox · Button · Overflow menu · Bulk edit · Merge entities