Skip to content

ItemLabel for combobox and listbox#3294

Merged
david-crespo merged 2 commits into
mainfrom
item-label
Jul 20, 2026
Merged

ItemLabel for combobox and listbox#3294
david-crespo merged 2 commits into
mainfrom
item-label

Conversation

@david-crespo

Copy link
Copy Markdown
Collaborator

Followup to #3290. Initially it didn't seem like it was worth abstracting because the call sites were too different, but then it turned out the variation was actually bad, and making them all the same fixes the issue. Note the first commit just extracts ItemDescription, and then the second goes all the way and makes a component for the entire item label.

Before

Broken wrapping:

attach-fip-listbox

Too long description is allowed to dominate:

pool-listbox-long

After

Not broken:

attach-fip-listbox-after

Nice truncation:

pool-listbox-after

@vercel

vercel Bot commented Jul 19, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
console Ready Ready Preview Jul 19, 2026 10:39pm

Request Review

@david-crespo
david-crespo requested a review from charliepark July 19, 2026 22:39

@charliepark charliepark left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks great!

@david-crespo
david-crespo merged commit 967d26e into main Jul 20, 2026
7 checks passed
@david-crespo
david-crespo deleted the item-label branch July 20, 2026 20:17
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.

2 participants