Skip to content

feat(design-system): compact Combobox trigger and menu minimum width - #3606

Draft
morgmart wants to merge 2 commits into
mainfrom
morganm/combobox-compact-trigger
Draft

morgmart wants to merge 2 commits into
mainfrom
morganm/combobox-compact-trigger

Conversation

@morgmart

@morgmart morgmart commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Why

The Tasks screen (#3561) puts a task's status and assignees side by side. Status uses a compact Select, but the assignee picker could only use the full-size Combobox trigger, which always shows a visible label. So the row didn't line up. The Combobox menu also took the trigger's width, so beside a small avatar trigger, names broke mid-word.

What changes

  • Combobox.Trigger variant="compact": the same outlined capsule as a compact Select, with the label announced to screen readers rather than shown. The default field trigger is unchanged.
  • The compact trigger stays at the compact Select's height, whatever is inside it. Artwork such as an avatar stack aligns to the line instead of the text baseline, and identity artwork tucks toward the leading edge, as small identity buttons do. Carl measured 32px beside the Status select in feat(tasks): Tasks with one home per task, projects, and comments #3561's screenshots.
  • Every Combobox menu keeps the compact Select's minimum width, or the trigger's width when that's wider.
  • DESIGN.md documents both, and the viewer has a "Compact trigger" specimen next to a compact Select.

The checkmark-versus-fill selection treatment is deliberately left out.

Checks

  • design:typecheck, design:check, design:test and design:build pass. There's a new test confirming the compact trigger is named by its label without showing it, and that it opens.
  • Biome passes on the changed files. A repo-wide pnpm check reports lint warnings in files this PR doesn't touch.
  • In the full Vitest run, 2 tests outside the design system failed and then passed when rerun (vite-config, codex-sh).
  • Not rendered by me: I didn't run the viewer or the app. The only visual evidence is feat(tasks): Tasks with one home per task, projects, and comments #3561's screenshots, where the two capsules line up at 32px. Keyboard use in the browser isn't checked.

🤖 Generated with Claude Code

morgmart and others added 2 commits November 16, 2026 00:13
Add `Combobox.Trigger variant="compact"`, matching Select's compact variant:
an outlined capsule whose label is announced rather than shown, for rows of
compact controls such as a task's status and assignees.

Give every Combobox menu the compact Select's minimum width, so a narrow
trigger such as an avatar stack no longer squeezes names mid-word.

Co-authored-by: Vogue <86a9516b8bdd0bbb22ab9340ed157fccdf422ae31bbb2fe2d59aba37c886f5d3@buzz.block.builderlab.xyz>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: morgmart <98432065+morgmart@users.noreply.github.com>
An avatar stack inside the compact trigger sat on the text baseline, which
grew the line box and made the trigger 37px beside a 32px compact Select.
Align artwork in a compact value to the line box, and tuck identity artwork
toward the leading edge as small identity buttons do. The viewer specimen now
uses a real avatar stack.

Co-authored-by: Vogue <86a9516b8bdd0bbb22ab9340ed157fccdf422ae31bbb2fe2d59aba37c886f5d3@buzz.block.builderlab.xyz>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: morgmart <98432065+morgmart@users.noreply.github.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant