# Pivot Studio accessibility

> Keyboard access to the field list, toolbar, table and dialogs, screen reader semantics, announcements and visual accessibility in Pivot Studio.

Every part of Pivot Studio can be used without a mouse: building a report in the field list, filtering, sorting, expanding members, drilling into records and exporting. Changes are announced to screen readers, so users know what happened without hunting for it.

## Structure

| Part | Semantics |
| --- | --- |
| Widget | A `region` landmark named by `ariaLabel` (default "Pivot report") |
| Toolbar | A `toolbar` named "Pivot report tools" |
| Field list | An `aside` named "Field list", with a search box and five listboxes: the fields and the Filters, Columns, Rows and Values zones |
| Table | A Birch UI Grid `treegrid`, named "Pivot table" (or your `ariaLabel`), with `aria-level` and `aria-expanded` on rows |
| Dialogs | Filter and drill-through dialogs that trap focus and restore it when they close |
| Announcements | A polite live region (`role="status"`) |

Fields are announced with their type and whether they are in the report ("Revenue, number, in report"), and chips with their position and filter state ("Store, filtered, 2 of 2 in Rows").

## Keyboard

### Toolbar

The toolbar has one tab stop. <kbd>Arrow Left</kbd> and <kbd>Arrow Right</kbd> move between its buttons, <kbd>Home</kbd> and <kbd>End</kbd> jump to the first and last. The Layout control is a native select.

### Field list and zones

| Key | Action |
| --- | --- |
| <kbd>Arrow Up</kbd> / <kbd>Arrow Down</kbd> | Move between fields or chips |
| <kbd>Home</kbd> / <kbd>End</kbd> | First or last item |
| <kbd>Enter</kbd> or <kbd>Space</kbd> | Open the field menu (add to a zone) or the chip menu (sort, filter, calculations, move, remove) |
| <kbd>Alt</kbd> + <kbd>Arrow Up</kbd> / <kbd>Arrow Down</kbd> | Move a chip up or down within its zone |
| <kbd>Delete</kbd> or <kbd>Backspace</kbd> | Remove a chip |

From the search box, <kbd>Arrow Down</kbd> moves to the first matching field. See [Field list](https://docs.birchui.com/pivot-studio/field-list.md#keyboard) for a walkthrough.

### Table

The table follows the Birch UI Grid [keyboard map](https://docs.birchui.com/grid/accessibility.md#keyboard-map) for moving between cells, plus:

| Key | Where | Action |
| --- | --- | --- |
| <kbd>Arrow Right</kbd> | A collapsed row label | Expand |
| <kbd>Arrow Left</kbd> | An expanded row label | Collapse |
| <kbd>Enter</kbd> | A row label | Toggle expansion |
| <kbd>Enter</kbd> | A value | Open drill-through |
| <kbd>Alt</kbd> + <kbd>Arrow Down</kbd> | A column header | Open the column menu, with Expand and Collapse for column members and Expand all rows and Collapse all rows |

### Dialogs and menus

<kbd>Escape</kbd> closes menus and dialogs and returns focus to where it was. Focus stays inside an open dialog: <kbd>Tab</kbd> from the last control returns to the first. In the filter dialog, member filters are labelled checkboxes and the search field is focused first.

## Announcements

The live region tells screen reader users what each action did, for example:

- "Region moved to position 1 of 2 in Rows"
- "Rows sorted by Revenue, largest first"
- "outline layout"
- "214 underlying records"
- "Report saved", "Report loaded"
- Error messages such as "The report file could not be read"

While a [worker](https://docs.birchui.com/pivot-studio/performance.md#aggregating-in-a-web-worker) computes, the table is marked `aria-busy`.

## Visual accessibility

- Focus is always visible, using the shared `--lq-focus-ring` color.
- Pivot Studio uses the shared `--lq-*` theme properties, so the contrast of the bundled light and dark themes carries over; see [Grid theming](https://docs.birchui.com/grid/theming.md#contrast).
- [Color scales](https://docs.birchui.com/pivot-studio/totals-and-formatting.md#color-scale) pick a dark or light text color for each cell background automatically.
- Conditional formats repeat what the numbers say. Keep them that way, and add `bold` or a class with an icon on [thresholds](https://docs.birchui.com/pivot-studio/totals-and-formatting.md#thresholds) when a state matters, so color is never the only cue.
- `density: 'comfortable'` gives larger targets on touch screens.

## Checklist

- Set `ariaLabel` to describe the report, for example "Store sales by region, 2026".
- Give value fields clear `caption`s; they are read as column headers.
- Keep the field list available (`fieldList` on, or the toolbar's Fields button) so keyboard users can change the report as easily as mouse users.
- If you hide the toolbar, offer your own controls for export, since the export buttons live there.
