The best way to control Claude Code, Codex and more from any computer or phone
fix(web): name combobox chip removal targets (#10127)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Alex Southwell committed
Sep 6, 2026 at 17:22 UTC
55333833ec260a5c9eefa05690086de768d6970c
1 file changed
+15
-5
apps/web/src/components/ui/combobox.tsx
+15
-5
@@ -352,27 +352,37 @@ function ComboboxChips({
352
}
353
354
function ComboboxChip({ children, ...props }: ComboboxPrimitive.Chip.Props) {
355
+ const labelId = React.useId();
356
+
357
return (
358
<ComboboxPrimitive.Chip
359
className="flex items-center rounded-[calc(var(--radius-md)-1px)] bg-accent ps-2 font-medium text-accent-foreground text-sm outline-none sm:text-xs/(--text-xs--line-height) [&_svg:not([class*='size-'])]:size-4 sm:[&_svg:not([class*='size-'])]:size-3.5"
360
data-slot="combobox-chip"
361
{...props}
362
>
361
- {children}
362
- <ComboboxChipRemove />
363
+ <span id={labelId}>{children}</span>
364
+ <ComboboxChipRemove labelId={labelId} />
365
</ComboboxPrimitive.Chip>
366
);
367
}
368
367
-function ComboboxChipRemove(props: ComboboxPrimitive.ChipRemove.Props) {
369
+function ComboboxChipRemove({
370
+ labelId,
371
+ ...props
372
+}: ComboboxPrimitive.ChipRemove.Props & { labelId: string }) {
373
+ const removeLabelId = `${labelId}-remove`;
374
+
375
return (
376
<ComboboxPrimitive.ChipRemove
370
- aria-label="Remove"
377
+ aria-labelledby={`${removeLabelId} ${labelId}`}
378
className="h-full shrink-0 cursor-pointer px-1.5 opacity-80 hover:opacity-100 [&_svg:not([class*='size-'])]:size-4 sm:[&_svg:not([class*='size-'])]:size-3.5"
379
data-slot="combobox-chip-remove"
380
{...props}
381
>
375
- <XIcon />
382
+ <span id={removeLabelId} className="sr-only">
383
+ Remove
384
+ </span>
385
+ <XIcon aria-hidden="true" />
386
</ComboboxPrimitive.ChipRemove>
387
);
388
}