style: draw select group headers like dropdown section titles

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Guilhem Lemouel
2026-10-30 09:55:44 -07:00
co-authored by Claude Opus 5.5
parent 0c1ccdd6d3
commit 5fdbbde2f9
@@ -119,10 +119,11 @@
>
{#each processedItems ?? [] as item, itemIndex}
{#if (item.__select_group && itemIndex === 0) || processedItems?.[itemIndex - 1]?.__select_group !== item.__select_group}
<!-- Same section title as DropdownV2's `sectionTitle`, so grouped menus read alike. -->
<li
class={twMerge(
'mx-4 pb-1 mb-2 text-xs font-semibold text-primary border-b border-border-light',
itemIndex === 0 ? 'mt-3' : 'mt-6'
'px-4 pt-1.5 pb-1 text-2xs uppercase tracking-wide text-secondary',
itemIndex === 0 ? 'mt-1' : 'mt-1 border-t border-border-light pt-2.5'
)}
>
{item.__select_group}