Skip to content

fix: SW-2583 Combobox radius consistency + default multi-select chevron - #206

Closed
boramyi-ts wants to merge 3 commits into
mainfrom
SW-2583-combobox-radius
Closed

fix: SW-2583 Combobox radius consistency + default multi-select chevron#206
boramyi-ts wants to merge 3 commits into
mainfrom
SW-2583-combobox-radius

Conversation

@boramyi-ts

@boramyi-ts boramyi-ts commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

SW-2583 — Combobox: consistent corner radius (+ default multi-select chevron)

Jira: SW-2583

1. Corner radius (the ticket)

The multi-select ComboboxChips container used rounded-md (8px), while the single-select ComboboxInput (its input-group), the popup ComboboxContent, and the sibling Select / Input all use rounded-lg (10px) — so single- and multi-select comboboxes side-by-side didn't read as the same control family.

Fix: align ComboboxChips to rounded-lg. Audited the rest — popup + input-group were already rounded-lg; the individual chip pill (rounded-sm) and list item (rounded-md) are their own tokens, left unchanged.

2. Default chevron on the multi-select

While aligning the two variants, the multi-select had no dropdown-toggle affordance: ComboboxInput renders a chevron (showTrigger, default true) but ComboboxChips rendered none. Added a matching showTrigger prop to ComboboxChips (default true) that renders the ComboboxTrigger chevron at the inline end, so both variants read the same. Opt out with showTrigger={false}.

Before / After (radius annotated)

Before After
before after

Before: input 10px + chevron, chips 8px + no chevron. After: both 10px, both with the chevron.

Tests

Radius / Single vs multi story asserts the chips container and input-group share one corner-radius token (regression guard). typecheck + lint clean; the full Combobox play-test suite passes (existing multi-select stories still pass with the added chevron). Zephyr id generated for the new story.

🤖 Generated with Claude Code

The multi-select ComboboxChips container used rounded-md (8px) while the
single-select ComboboxInput (input-group), the popup ComboboxContent, and
the sibling Select / Input all use rounded-lg (10px) — so single- and
multi-select comboboxes side-by-side didn't read as one control family.

Aligns ComboboxChips to rounded-lg. (Audited the other Combobox parts: the
popup is already rounded-lg; the individual chip pill rounded-sm and the
list item rounded-md are their own tokens, left as-is.)

Adds a "Radius / Single vs multi" story that asserts the chips container and
the input-group share one corner-radius token.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@boramyi-ts
boramyi-ts requested review from a team as code owners September 8, 2026 18:32
@vercel

vercel Bot commented Sep 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
ts-lib-ui-kit-storybook Ready Ready Preview Sep 8, 2026 6:49pm UTC

Request Review

@unblocked unblocked Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No issues found

About Unblocked

Unblocked has been set up to automatically review your team's pull requests to identify genuine bugs and issues.

📖 Documentation — Learn more in our docs.

💬 Ask questions — Mention @unblocked to request a review or summary, or ask follow-up questions.

👍 Give feedback — React to comments with 👍 or 👎 to help us improve.

⚙️ Customize — Adjust settings in your preferences.

…(SW-2583)

The single-select ComboboxInput shows a chevron toggle (showTrigger, default
true) but the multi-select ComboboxChips showed none — an inconsistent
affordance between the two variants. Adds a matching `showTrigger` prop to
ComboboxChips (default true) that renders the ComboboxTrigger chevron at the
inline end, so both variants read the same. Opt out with showTrigger={false}.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@boramyi-ts boramyi-ts changed the title fix: SW-2583 align Combobox chips corner radius with the input fix: SW-2583 Combobox radius consistency + default multi-select chevron Sep 8, 2026
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🟢 Lines 96.84% (🎯 83%)
⬆️ +0.01%
23577 / 24345
🟢 Statements 96.84% (🎯 83%)
⬆️ +0.01%
23577 / 24345
🟢 Functions 95.08% (🎯 74%)
⬇️ -0.06%
1084 / 1140
🟢 Branches 90.57% (🎯 81%)
⬆️ +0.08%
4621 / 5102
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/components/ui/combobox.tsx 100%
🟰 ±0%
86.95%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
Generated in workflow #1176 for commit 2f84df0 by the Vitest Coverage Report Action

boramyi-ts added a commit that referenced this pull request Sep 10, 2026
Supersedes #206: ComboboxChips gains showTrigger (default true) rendering the
dropdown chevron at the inline end, mirroring ComboboxInput so single- and
multi-select share the affordance. The radius consistency from #206 is already
covered by this PR's size default (rounded-lg).
@boramyi-ts

Copy link
Copy Markdown
Contributor Author

Superseded by #212 (SW-2591 input sizing) and closing this.

Both changes ship in #212 with tests, so keeping this open would just create a merge conflict on ComboboxChips. Closing in favor of #212.

@boramyi-ts boramyi-ts closed this Sep 10, 2026
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