Skip to content

feat: publish combobox with the select's field trigger - #28

Merged
zyx1121 merged 1 commit into
mainfrom
feat/combobox
Oct 7, 2026
Merged

zyx1121 merged 1 commit into
mainfrom
feat/combobox

Conversation

@zyx1121

@zyx1121 zyx1121 commented Oct 7, 2026

Copy link
Copy Markdown
Member

Summary

The attendee picker used an outline Button as its trigger, so it did not match the fields around it (dark mode: page background instead of bg-input/30, border-border instead of border-input, 16px instead of 12px padding).

  • field (registry:lib): fieldTriggerClassName, the closed look of every pick-a-value control. select uses it.
  • combobox: ComboboxTrigger (field look, placeholder prop) and ComboboxContent (w-(--anchor-width)), composed with Popover and Command. Portal's five pickers are multi-select with groups, so these stay pieces rather than one closed component.
  • tokens:check: all of registry/winlab is component code (the lib file was linted as a page).
  • DESIGN.md: never use a button as a field.

Test plan

  • Sandbox: all checks, compose healthy
  • Chromium light and dark: input, select and combobox triggers compute the same background, border color, 12px padding, 40px height, 16px radius; typing 林 + Enter selects 林志豪
  • Fresh project: shadcn add combobox select writes lib/field.ts, imports rewrite to @/lib/field, build passes
  • CI green

🤖 Generated with Claude Code

The combobox demo used an outline button as its trigger, so in dark
mode it had the page background, a border-colored outline and 16px
padding, unlike the inputs and select around it.

- field (registry:lib): one class list for every pick-a-value trigger;
  select now uses it
- combobox: ComboboxTrigger (field look, placeholder) and
  ComboboxContent (as wide as the trigger) around a Command; single or
  multiple choice is up to the Command
- tokens:check treats all of registry/winlab as component code
- DESIGN.md: never use a button as a field

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@zyx1121
zyx1121 merged commit 87048c1 into main Oct 7, 2026
2 checks passed
@zyx1121
zyx1121 deleted the feat/combobox branch October 7, 2026 07:29
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