Accessibility and responsive design

The standard is WCAG 2.2, level AA. This page maps the criteria that matter for a data UI to how the library meets them, and says what is checked by a test and what is not.

How it is enforced

CheckWhere
Text, accent, border and status contrast for every preset, light and darkpackages/tokens/src/tokens.test.ts
Series colours told apart by neighbours, including under red-green colour blindnesscheckSeries, same test file and live in ThemePicker
Smallest pressable sizeTARGET_MIN (24) and TARGET_MIN_TOUCH (44) in packages/tokens/src/css.ts, emitted as --sf-target-min
Controls found by role and name, status and errors announcedeach component's *.test.tsx
Human-in-the-loop surfaces are valid and end in a decisionpackages/spec/src/patterns.test.ts
Every axe check tagged WCAG 2.0, 2.1 and 2.2 A and AA, on eight playground areas at desktop and phone sizeapps/e2e/tests/accessibility.spec.ts (pnpm e2e; CI job browser)
No sideways page scroll at phone width (1.4.10) on seven areasapps/e2e/tests/layout.spec.ts
Keyboard paths in a real browser: running SQL, sorting, pills put on shelves and taken off, panels moved from their menu; a DataTable sorted and ticked, a ConfirmDialog that keeps focus and gives it back, a Combobox chosen from with the keys (app-data.spec.ts)apps/e2e/tests/*.spec.ts

The browser tests run the playground against DuckDB in the page, in Chromium only (WebKit runs only layout checks, on an iPhone 13), and in the default theme only. axe's target-size rule is not run inside a pan and zoom canvas, where a diagram fitted to a phone draws its cards small until the person zooms in (every card there is also reached from the keyboard, and in ModelDiagram from the list beneath). Not automated yet: other browsers, screenshot tests per theme, and screen reader runs. Those are done by hand; do not assume them.

Criteria

CriterionHow it is met
1.1.1 Non-text contentCharts are role="img" with a label that states the finding; Sparkline and BulletGraph write their reading in words; QueryResult offers the table behind a chart.
1.3.1 Info and relationshipsNative table, th scope, lists, label; step lists are ol.
1.4.1 Use of colourStatus, risk, certification, flags and pipeline check results (✓ Passed, ! Failed, ! Warning) carry a word and a symbol; a StatusBadge is its words, with a different shape for each tone. Series are labelled.
1.4.3 / 1.4.11 ContrastTokens are derived to 4.5:1 for text and 3:1 for controls and marks, and tested per preset. Status colours (success, warning, danger, info) are text colours, 4.5:1 on the background and on surfaces; accent text is 4.5:1 on the soft accent fill as well, since a selected item draws one on the other.
1.4.4 / 1.4.12 Resize and spacingSizes are tokens; text containers have no fixed height.
1.4.10 ReflowComponents respond to their container (.sf-container, @container sf); nothing scrolls the page sideways at 320px. Grids, charts and diagrams scroll inside their own box.
1.4.13 Content on hover or focusNothing is available on hover only.
2.1.1 / 2.1.2 KeyboardEvery action has a keyboard path; no traps. A box that scrolls on its own (a table of columns, checks or runs) takes focus and is a named region, so it can be scrolled by keys.
2.3.3 Animationprefers-reduced-motion stops transitions and chart animation.
2.4.7 Focus visibleA 2px focus ring from --sf-color-focus on every control.
2.4.11 Focus not obscured (new in 2.2)Scroll regions with sticky headers set scroll-padding.
2.5.7 Dragging movements (new in 2.2)ModelDiagram joins, removals and table adds all work from its list and form; each line has a button. Panning and zooming ModelDiagram and PipelineGraph also work from buttons and keys.
2.5.3 Label in nameA control's spoken name begins with its visible text. Where more is said than shown (a pill's kind, a pipeline node's status), it follows the visible name as hidden text (.sf-visually-hidden) instead of replacing it with aria-label.
2.5.8 Target size (new in 2.2)Controls have min-height: var(--sf-target-min): 24px, and 44px under pointer: coarse.
3.2.6 Consistent help (new in 2.2)A host concern; the library adds none of its own.
3.3.1 / 3.3.3 ErrorsErrors are text beside what failed, role="alert", with the reason and, for SQL, the line and column. A data component given an errorMessage says that instead of the engine's text, still as an alert, so a page can say what went wrong in its readers' terms.
3.3.4 Error preventionDestructive steps start unticked in PlanReview; full refresh needs confirmation on the server too. DatasetReview saves only after the person names themselves and approves, shows what changed from the saved version first, and a stale or altered proposal is refused with the reason.
3.3.7 Redundant entry (new in 2.2)Flows carry earlier answers forward; a decision made in a card is not asked again.
3.3.8 Accessible authentication (new in 2.2)The library has no sign-in and no field for a credential.
4.1.2 Name, role, valueNative elements first; state through aria-busy, aria-pressed, aria-current, aria-expanded.
4.1.3 Status messagesOutcomes use role="status" or aria-live="polite": among them a SelectionBar's count, a Pagination's range and how many suggestions a Combobox has.

Also supported: Windows forced-colours mode (marks and focus take system colours), light and dark, and themes checked for contrast when a person edits them. A person who asks their system for more contrast (prefers-contrast: more), or picks the High contrast preset (contrast: "more"), gets solid glass, every pane and control outlined at 3:1 or more, and the quieter labels a level darker.

Keyboard

Everything a pointer can do has a key. A right-click menu opens with the Menu key or Shift+F10 and is never the only way to do something.

WhereKeysWhat they do
Any menu↑ ↓, Home, EndMove between items
Enter or SpaceChoose
Escape or TabClose; focus returns to where it was
Data grid (cells)← ↑ → ↓Move the active cell
Home, EndFirst or last column of the row
Ctrl/⌘ Home, Ctrl/⌘ EndFirst or last row
Page Up, Page DownA screen of rows
Ctrl/⌘ CCopy the cell
EnterOpen the row (when the host handles row clicks)
Menu key, Shift+F10Cell menu: copy, copy row, filter to or leave out the value
Data grid (a column header)Enter or SpaceSort; with Shift, add to the sort
Alt ← , Alt →Move the column
Shift ←, Shift →Narrower or wider
Menu key, Shift+F10Column menu: sort, move, hide, reset, generate SQL
Object browser↑ ↓, Home, EndMove
→ ←Open or close; step in or out
EnterOpen or select
InsertPut the name, or a join's JOIN clause, in the editor
Ctrl/⌘ CCopy the name
Alt Enter, Ctrl/⌘ IDetails of the database, schema or table
Menu key, Shift+F10Item menu: details, generate SQL, copy, insert
Object browser (selecting)SpaceSelect or unselect the row the keyboard is on; Ctrl or ⌘ click and Shift click do the same with a pointer
Shift EnterHand the selection (or the row, with nothing selected) to the chat or whatever the host attached; also "Add to chat" in the row's menu. This is the keyboard and touch form of dragging it there
EscapeClear the selection
File browser↑ ↓, Home, EndMove
File browser→ ←Open or close a folder; ← on a file goes to its folder
File browserEnterOpen or close a folder; open a file (what that does is the host's)
File browserSpaceSelect or unselect the row; Ctrl or ⌘ click and Shift click do the same with a pointer; Escape clears
File browserShift+EnterHand the selection, or the row, to a chat ("Add to chat"); the keyboard and touch form of dragging
File browserCtrl or ⌘ + CCopy the path
Chat composerEnterSend; Shift+Enter starts a new line
EscapeClose an open menu (focus goes back to its button); end a spoken conversation
TabMove through a menu's choices; each is a radio or a checkbox with its state announced
Agent setup menuEnter or →Open a section (Agent, Skills, Connectors) in place
← or EscapeBack to the sections, on the one just left; Escape there closes the menu
(buttons)Dictate, Talk, Add files or data, Add data, Model, Agent setup: every one is a button; files can also be chosen with the file dialog instead of dropped
Dev tools (SurfacesDevTools)Ctrl+Shift+D (⌘⇧D on a Mac)Open or close the panel; focus moves into it, and back to its button when it closes. The button does the same
← → on the Step slider; the Step back, Step forward and Live buttonsTime travel: show every surface as it stood at a step
"Pick a component on the page" (a pointer), or a row of the Components list (keyboard)Outline a component on the page and narrow the lists to it; Escape gives up picking, and the "Only …" button in each list clears it
↑ ↓ Home End Page Up Page Down in a listMove the selection through the timeline, messages, components, events, services or turns; the list is one tab stop
↑ ↓ (docked to the bottom) or ← → (docked to the side) on the dividerResize the panel
Conversation list↑ ↓Move between conversations
EnterOpen
F2Rename
PPin or unpin
DeleteDelete, after asking
Menu key, Shift+F10The row's menu; every item in it has a key above
File browserMenu key, Shift+F10The row's menu; every item in it has a key above
Explorer (a pill)EnterPut it on its shelf: an attribute breaks the view down, a metric or calculation is measured. On a shelf, Enter opens it for editing
Explorer (a pill)SSplit by this attribute
Explorer (a pill)E, DEdit; duplicate
Explorer (a pill)MAdd it to the semantic model, or update the model's definition (when the explorer has a model)
Explorer (a pill)Delete, BackspaceTake it off the shelf it is on; each shelf pill also has a × button, and so does a field-list pill that is in use
Explorer (a pill)Shift+DeleteRemove a field the person made (also on the pill's menu)
Explorer (a pill on a shelf)Alt+←, Alt+→Move it earlier or later along its shelf; the measures' order is the order of the series. Also on the menu, greyed at either end
Semantic model editorTab, SpaceEvery part is a native control: the key is a list of checkboxes, "Check the key" says the engine's answer in a status or an alert, and the rows are a ModelDiagram whose joins are added, confirmed and removed from the list and form beneath it; where the rows come from and each join's kind are menus in that list (the menu on a line is for a pointer and is out of the tab order, named apart for a screen reader), and whether a join can repeat rows is said in words, not only by colour
Explorer (a pill)Menu key, Shift+F10The pill's menu; every item has a key above. Dragging is never the only way
Explorer (a pill), touchTap; hold, then dragA tap does what Enter does. A finger that holds a pill for a moment drags it, onto a shelf or along one; one that moves at once scrolls the page
Item controls (a report tile, a framed component in the Playground)TabOne stop for the whole row of controls; they appear when focus is inside the item
Item controls← → (or ↑ ↓), Home, EndMove between the controls; each is named at once in a tooltip
Item controlsEnter, SpaceUse the control: change, chart or table, wider, narrower, move earlier or later, remove. Nothing about an item needs dragging or hovering
Item controlsEscapeHide the tooltip
Chat (message box)Tab to a chip's ✕, then EnterTake an attached table or column off the message
SQL editorCtrl/⌘ EnterRun
Ctrl/⌘ Z, Shift Ctrl/⌘ ZUndo, redo
Ctrl SpaceSuggest tables and columns
Tab, Shift TabIndent, outdent
Playground composer (the instruction box)Ctrl/⌘ EnterSend the instruction to the agent (also the Apply button)
Workspace (a panel's heading)The "⋯" button, then ↑ ↓ and Enter: Move left, right, up, down, to a new column, Hide. Shift+F10 or the Menu key on the heading opens the same menuEverything a drag does: move the panel between columns, within a stack, to a column of its own, or off the workspace. Where it went is announced
ResizeHandle (any app's own, and every handle Arrange draws)← → on a handle at a right edge, ↑ ↓ on one at a bottom edge; Shift with an arrow for five stepsChange the width or height by one step, as dragging it does (a pointer, a pen or a finger). Its value, least and most are read out (role="separator" with aria-valuenow, aria-valuemin, aria-valuemax)
ResizeHandleHome, EndThe least or the most it allows
ResizeHandleEnter, or a double clickPut the size back, where the host offers it (Arrange: the widths and height the page shipped with when it is given shipped; equal widths and the height the component chooses otherwise)
ResizeHandleEscape while draggingGive up the drag; the size goes back to where it started
DataTable (a sortable heading)Tab, then Enter or SpaceAsk the host to sort by that column, ascending first, then the other way; the heading's aria-sort says which way it is sorted. The table never reorders rows itself
DataTable (a check box)SpaceTick or untick the row; the heading's box ticks or unticks every row on the page and shows a mixed state when some are ticked
DataTable (a row)Menu key, Shift+F10The row's menu, where the host gives one; everything in it is also on the page
DataTable (a row's controls)Tab, then ← →One tab stop for the row's actions, as for any item controls; always shown unless the host asks for them on hover
SelectionBarTab, EnterEach action, "Select all N that match", "Only this page" and Clear are buttons in reading order; the count is announced as it changes
PaginationTab, EnterPrevious and Next; the range shown ("51–100 of 126") is announced
ConfirmDialogTab, Shift+TabStay inside the dialog: the page behind is inert. Focus starts on Cancel when the action takes something away, on the action otherwise
ConfirmDialogEscape, or a press outsideCancel; focus goes back to what opened it
Combobox↓ ↑Open the suggestions and move through them; focus stays in the box (aria-activedescendant)
ComboboxEnterChoose the highlighted suggestion; with none highlighted, Enter goes to the form, so what was typed stands
ComboboxEscapeClose the suggestions; a second Escape clears the box
PopoverEnter or Space on its buttonOpen the panel and move focus to its first control; again on the button closes it
PopoverTab, Shift+TabMove through the panel's controls; Tab past the last one goes on to the page and closes it
PopoverEscape, or a press outsideClose; Escape puts focus back on the button
Arrange (useArrange, PageStudio with arrange, the Playground), a resize handle↑ ↓ on the handle under a component; ← → on the handle at its right edge in a grid or rowMake the component 20 pixels shorter or taller, or move the line between it and its neighbour by 4% of the row; focus stays on the handle. Handles show for the component under the pointer or with focus, and always on a touch screen. With resizeWhileViewing (the pages gallery and the Playground) the width handles and the height handle under a component with a height of its own (a chart or a table, say) or one whose height is set stay while nobody is arranging, and work the same
Arrange (useArrange, PageStudio with arrange, the Playground)The arrow controls on a component's bar (one tab stop, ← → between them), or Up and Down in the Playground's Components panelMove the component one place earlier or later in its container, as dragging it does; focus stays on the control. Remove takes it off. Escape stops a drag
Workspace (a divider)← → between columns, ↑ ↓ between stacked panelsResize the two sides of the divider (also drag it)
Workspace (the rail)Tab to a panel's button, then Enter or SpaceShow or hide that panel. The button's name is the panel's full title, whatever short name the rail shows
Workspace (the rail)Focus a buttonIts name shows beside it at once, as it does on hover; Escape hides it
Workspace (the rail's foot)"Show panel names on the rail" button, Enter or SpaceNames under the icons, or icons only (the default) for a narrower rail
Workspace (a panel sharing a column)The fold button before its title, Enter or SpaceFold the panel to its heading, or open it again; opening one folds the others when more than two would be open
Side navigation (folded away)Enter or Space on its menu button, at the page's top leftOpen the navigation as a dialog: a drawer on a wide screen, the whole screen on a narrow one; focus goes to its close button
Tab, Shift+TabStay inside the navigation while it is open
Escape, its close button, or choosing a pageClose it; focus returns to the menu button
Side navigation"Fold away" / "Keep open" buttonFold the navigation away to its menu button, or keep it beside the page. Not offered under 40rem, where it is always folded
Data modelTab to a line's ×, then EnterRemove that join
Data model and pipeline graph (the canvas focused)+ or =, -Zoom in, zoom out (also buttons above the canvas)
0Fit the whole diagram to view (also "Fit to view"; "100%" resets)
← ↑ → ↓Pan
Ctrl/⌘ + wheel, pinchZoom about the pointer; a plain wheel or two-finger scroll pans, and drag the background to pan
Chart with a zoom bar, and node graphCtrl/⌘ + wheel, pinchZoom; a plain wheel or two-finger scroll scrolls the page on past it. A chart also zooms from the bar under it
Pipeline graph (a node)← ↑ → ↓Move between nodes; the view pans to the focused one
Details panelEscapeClose
Approval cardTab, Shift TabMove between Allow, Deny, "Edit before allowing" and the reason field
Enter in the confirmation fieldAllow, once "confirm" is typed (irreversible requests only)
Form inputsNative keys: arrows move a slider and a choice, Space ticks a check box, Enter in a field submitsErrors are announced (role="alert") beside the field
Action receiptTab to Undo, then EnterAsk to undo; the agent then asks to confirm it

Responsive rules

  1. Measure the container, not the window. The same component sits in a page, a chat reply, a side panel and an MCP frame. SurfaceView and QueryResult are containers; a host marks any other region with .sf-container.
  2. Three widths: narrow up to 480px, medium 481 to 840px, wide above. Design narrow first.
  3. Fluid first: repeat(auto-fit, minmax(min(100%, 16em), 1fr)), flex-wrap and minmax(0, 1fr) before any breakpoint.
  4. What changes when narrow: Grid and Row stack; review cards put actions on their own lines; a table that cannot fit restacks with each cell under its heading or scrolls in its own region.
  5. Touch: targets grow to 44px; nothing depends on hover (the remove button on a join line is always shown where there is no hover).
  6. Density is a theme choice (comfortable, compact), separate from width.

Known gaps

  • No screenshot tests, and the browser tests run in Chromium and one theme only.
  • DataGrid has not been reviewed against the ARIA grid pattern with a screen reader.
  • ECharts canvases have a text label but no keyboard path through data points; the table view is the alternative.