Skip to content

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 ​

  1. Selection count: Selection: 2, in bold. With nothing selected it reads Selection: nothing selected in muted ink.
  2. 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.
  3. Actions: every bulk action is its own small secondary button, with its icon and a verb label. Destructive actions (tone: Danger) use --color-danger-ink and 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 ​

VariantWhereActions
Defaultlists in the main library and in detail panelsone button per action
Confirm selectionpickersone commit button, Confirm selection
Small screenbelow 48remmore 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 ​

StateWhat you seeTrigger
Nothing selectedmuted Selection: nothing selected; actions that need a selection are disabled, with a help icon and the reason in their tooltip—
Items selectedbold Selection: n; those actions turn oncheckboxes in the list
Selection on other pagesn selected on other pages and Clear selectionpaging after selecting
Action unavailablethe button stays visible but disabled; its tooltip says whywrong selection size, wrong mode
Hiddenno bar at allno 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.

Entity list element · Checkbox · Button · Overflow menu · Bulk edit · Merge entities

Powered by Elody - Open Source Semantic Data Platform