#6907·heroui

[BUG] -Select / ComboBox / Autocomplete: the selected-item checkmark overlaps the label when the popover sizes to its content

Author: wingkwongCreated Sep 24, 2026Updated Sep 24, 2026
Labelstype/bugP3pkg/stylesarea/collections

HeroUI Version

3.2.6

Describe the bug

Version: @heroui/styles 3.2.6

Cause: two rules with the same specificity, and the later one wins.

css
/* list-box-item.css — reserves room for the absolutely positioned indicator */
.list-box-item:has(.list-box-item__indicator) { @apply pe-7; }   /* (0,2,0) */

/* select.css (also combo-box.css, autocomplete.css) — later in the bundle */
.select__popover [data-slot="list-box-item"] { @apply px-2.5; }   /* (0,2,0) */

The popover rule's px-2.5 resets padding-inline-end back to 10px. The indicator is position: absolute, so nothing else counts its width. The popover is min-w-(--trigger-width) and otherwise shrink-to-fit, so it sizes to the widest label with no room for the tick. Wide triggers hide the bug because they leave spare space; short options expose it.

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

Repro: a Select with short options and a ListBox.ItemIndicator on each item, for example the options 25 / 50 / 100 / 250 on a trigger that sizes to its content. When you open it, the selected item's checkmark sits on top of its label ("250✓").

Image

Expected behavior

Suggested fix: in select.css, combo-box.css and autocomplete.css, set only the start padding in the popover's item rule, or re-assert the indicator padding there:

css
[data-slot="list-box-item"] {
  @apply ps-2.5;
  &:has([data-slot="list-box-item-indicator"]) { @apply pe-7; }
  &:not(:has([data-slot="list-box-item-indicator"])) { @apply pe-2.5; }
}

Workaround until then:

css
@layer components {
  :is(.select__popover, .combo-box__popover, .autocomplete__popover)
    [data-slot="list-box-item"]:has([data-slot="list-box-item-indicator"]) {
    padding-inline-end: calc(var(--spacing) * 7);
  }
}

with the fix

Image

Screenshots or Videos

No response

Operating System Version

macOS

Browser

Chrome