Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(quill): give every combobox option a left gutter for the check (#64305)

Adam Leith714b3ede2a2f
diff --git a/packages/quill/packages/primitives/src/combobox.css b/packages/quill/packages/primitives/src/combobox.css
index c2e30a3b24bc..48710b49b492 100644
--- a/packages/quill/packages/primitives/src/combobox.css
+++ b/packages/quill/packages/primitives/src/combobox.css
@@ -123,6 +123,17 @@
font-weight: 400;
}
+ /*
+ * Reserve the left gutter on every option so labels align whether selected
+ * or not and the check indicator (absolute start-2) sits in the gutter —
+ * matching checkbox/radio menu-item spacing. The `.quill-combobox__content`
+ * ancestor scope outranks Button's own `padding-inline`, which otherwise
+ * ties and wins by source order.
+ */
+ .quill-combobox__content .quill-combobox__item {
+ padding-inline-start: 1.875rem;
+ }
+
.quill-combobox__item[data-disabled] {
pointer-events: none;
opacity: 0.5;
diff --git a/packages/quill/packages/primitives/src/combobox.tsx b/packages/quill/packages/primitives/src/combobox.tsx
index c81e581dce64..94118f1c1d21 100644
--- a/packages/quill/packages/primitives/src/combobox.tsx
+++ b/packages/quill/packages/primitives/src/combobox.tsx
@@ -162,7 +162,7 @@ function ComboboxItem({
return (
<ComboboxPrimitive.Item
data-slot="combobox-item"
- className={cn('quill-combobox__item quill-menu-item--inset', className)}
+ className={cn('quill-combobox__item', className)}
title={title ?? (typeof children === 'string' ? children : undefined)}
render={<Button left className="min-w-0 aria-selected:bg-fill-selected" />}
{...props}