@@ -308,7 +308,20 @@ const triggerInputIconStyles: Record<
308308 } ,
309309} ;
310310
311- function TriggerInput ( props : ComboboxBase . Input . Props ) {
311+ function TriggerInput ( {
312+ clearLabel = "Clear selection" ,
313+ showOptionsLabel = "Show options" ,
314+ ...props
315+ } : ComboboxBase . Input . Props & {
316+ /** Accessible label for the clear button. Pass a translated string for i18n.
317+ * @default "Clear selection"
318+ */
319+ clearLabel ?: string ;
320+ /** Accessible label for the dropdown trigger. Pass a translated string for i18n.
321+ * @default "Show options"
322+ */
323+ showOptionsLabel ?: string ;
324+ } ) {
312325 const size = useContext ( ComboboxSizeContext ) ;
313326 const iconStyles = triggerInputIconStyles [ size ] ;
314327
@@ -331,6 +344,7 @@ function TriggerInput(props: ComboboxBase.Input.Props) {
331344 />
332345
333346 < ComboboxBase . Clear
347+ aria-label = { clearLabel }
334348 className = { cn (
335349 "absolute top-1/2 flex -translate-y-1/2 cursor-pointer bg-transparent p-0" ,
336350 "data-[disabled]:pointer-events-none data-[disabled]:opacity-0" ,
@@ -341,6 +355,7 @@ function TriggerInput(props: ComboboxBase.Input.Props) {
341355 </ ComboboxBase . Clear >
342356
343357 < ComboboxBase . Trigger
358+ aria-label = { showOptionsLabel }
344359 className = { cn (
345360 "absolute top-1/2 -translate-y-1/2 flex items-center justify-center cursor-pointer text-kumo-subtle" ,
346361 "m-0 bg-transparent p-0" , // Reset Stratus global button styles
@@ -430,7 +445,15 @@ function Group(props: ComboboxBase.Group.Props) {
430445 ) ;
431446}
432447
433- function Chip ( props : ComboboxBase . Chip . Props ) {
448+ function Chip ( {
449+ removeLabel = "Remove" ,
450+ ...props
451+ } : ComboboxBase . Chip . Props & {
452+ /** Accessible label for the chip remove button. Pass a translated string for i18n.
453+ * @default "Remove"
454+ */
455+ removeLabel ?: string ;
456+ } ) {
434457 return (
435458 < ComboboxBase . Chip
436459 { ...props }
@@ -444,6 +467,7 @@ function Chip(props: ComboboxBase.Chip.Props) {
444467 >
445468 { props . children }
446469 < ComboboxBase . ChipRemove
470+ aria-label = { removeLabel }
447471 className = { cn (
448472 "cursor-pointer rounded-md p-1 hover:bg-kumo-fill-hover" ,
449473 "bg-transparent flex" ,
0 commit comments