# Command Palette Visual QA Workflow from Figma

> Compare implemented command palettes with Figma across triggers, search results, keyboard navigation, permissions, empty states, and responsive boundaries.

- Canonical page: https://www.hypermatic.com/articles/pixelay-command-palette-visual-qa-workflow-from-figma/
- Published: 2026-11-13T00:00:00.000Z
- Updated: 2026-11-13T00:00:00.000Z

For related resources, read [the resource directory](https://www.hypermatic.com/resources/llms.txt). The [site index](https://www.hypermatic.com/llms.txt) links to products and current pricing. Article and tutorial Markdown URLs replace the final slash with .md; product Markdown uses /<plugin>.md.


A command palette may look like a search box in a modal, but its implementation behaves like a compact application. It opens from several triggers, searches changing data, groups commands, tracks keyboard focus, reveals shortcuts, respects permissions, and sometimes launches nested actions.

That combination creates visual bugs that do not appear in the default Figma frame: the selected row sits below the scroll window, a shortcut label collides with a long command, recent items show to the wrong role, or the palette jumps when results arrive.

This workflow is distinct from [search results and filter-state QA](/articles/pixelay-search-results-and-filter-state-qa-workflow-from-figma/), which focuses on full discovery pages. A command palette is transient, keyboard-first, focus-sensitive, and constrained by the current viewport.

## Turn the design into a state inventory

List the observable states before comparing pixels:

- closed and each opening trigger;
- open with an empty query;
- recent, suggested, or pinned commands;
- typed query with exact and partial matches;
- grouped results;
- keyboard-selected and pointer-hovered rows;
- no results;
- loading, delayed, and failed sources;
- permission-restricted commands;
- nested commands or secondary input;
- destructive command confirmation;
- mobile or narrow viewport behaviour.

Attach a deterministic fixture and trigger to every state. “Search for something” is not repeatable. “Open as an editor, type `inv`, then press Arrow Down twice” gives design and engineering the same test.

## Stabilize the comparison environment

Use fixed browser dimensions, zoom, fonts, theme, role, data, and feature flags. Disable animations only when you are reviewing settled geometry; test motion separately at normal speed.

[Pixelay](/pixelay/) can compare Figma designs with live, staging, local, or private URLs using overlay, difference, split-screen, and other visual modes. Align the intended palette frame with the implemented state, then adjust opacity to locate geometry drift.

Do not compare a centered desktop design with a page that has a different scrollbar or viewport height. The palette's position often depends on the visual viewport, so record exact dimensions in the bug report.

## Check the shell before the results

Start with the stable container:

- width and maximum height;
- horizontal and vertical placement;
- backdrop colour and opacity;
- border, radius, shadow, and clipping;
- search field height and icon alignment;
- internal padding and divider positions;
- footer or shortcut-help placement.

Confirm that opening the palette does not move the page underneath it. On narrow screens, verify whether the design expects a centered modal, bottom sheet, or full-screen surface. Test browser UI changes and virtual keyboards where they affect the visual viewport.

## Exercise content extremes

Prepare commands with short and long labels, descriptions, icons, no icons, shortcut hints, badges, and group headings. Include enough results to scroll and a query that highlights several separated matches.

Check whether text truncation follows the design and still leaves the command distinguishable. Shortcut tokens should not compress the primary label into nonsense. Highlighted substrings must preserve contrast in selected, hovered, and disabled rows.

For grouped results, verify heading spacing at the top of the list and after scrolling. Sticky headings, if used, should not cover the selected row or create a double divider.

## Follow keyboard focus through the list

Open the palette with the documented shortcut and confirm visible focus lands in the input. Move with Arrow Up and Arrow Down, cross group boundaries, wrap only if intended, and use Enter and Escape.

The selected row should match the Figma treatment and remain visible when the list scrolls. Pointer hover and keyboard selection are different states; moving the pointer should not silently steal the keyboard position unless the interaction specification says so.

Test Tab behaviour. Focus should not disappear behind the overlay or move into the covered page. When the palette closes, focus should return to the trigger or the element that previously held it.

Pixel comparison will reveal the visual symptom, while keyboard testing determines whether the state is real and usable. Both are required.

## Verify permissions and current context

Run the same fixtures as an administrator, editor, viewer, signed-out user, or other relevant roles. Decide whether unavailable commands are hidden or disabled, and compare that behaviour with the design.

Contextual commands should reflect the current page or selection. A palette opened on a project page may show different actions than one opened globally. Capture the route, role, and selected object with every screenshot so a missing row is not misdiagnosed as spacing drift.

Never use production customer data merely to populate realistic results. Use owned test fixtures with long names and varied permissions.

## Test asynchronous transitions

Throttle the source or use a delayed fixture. Observe the empty-query state, loading indicator, results arrival, and failure recovery. The palette should not resize chaotically as sections appear.

Type quickly enough to create overlapping requests. Confirm that stale results do not replace newer ones and that the highlighted match corresponds to the visible query. Test offline or provider failure if commands depend on remote data.

If a command launches another step, compare that nested state too. Back navigation should restore the previous query and selection when the design promises it.

## Report differences by state and layer

A useful visual bug report includes:

- exact route and viewport;
- role, fixture, theme, and feature flags;
- opening trigger and keystrokes;
- expected Figma frame;
- Pixelay comparison mode and screenshot;
- whether the problem affects shell, row, typography, focus, scroll, or responsive behaviour;
- whether it reproduces with pointer, keyboard, or both.

Prioritize invisible focus, inaccessible commands, clipped results, wrong permission states, and off-screen mobile layouts above minor shadow differences.

## Final command palette QA pass

Before signoff, verify the shell at each breakpoint; short, long, empty, loading, and failed content; keyboard and pointer states; scrolling; groups and shortcuts; role-based commands; nested actions; focus restoration; and reduced-motion behaviour.

The goal is not simply to make the open palette resemble a Figma frame. It is to keep the design coherent while the component searches, scrolls, changes context, and responds to every input method that makes a command palette useful.
