Skip to content

Commit d06c4cc

Browse files
Bill LeoutsakosBill Leoutsakos
authored andcommitted
fix(emcn): restore spacing between multi-select icons and labels
1 parent a6b6f89 commit d06c4cc

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/emcn/src/components/chip-select/chip-select.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ export const ChipSelect = React.forwardRef<HTMLButtonElement, ChipSelectProps>(f
286286
}}
287287
>
288288
{opt.iconElement ??
289-
(Icon ? <Icon className='mr-2 size-[14px] text-[var(--text-icon)]' /> : null)}
289+
(Icon ? <Icon className='size-[14px] shrink-0 text-[var(--text-icon)]' /> : null)}
290290
{opt.label}
291291
</DropdownMenuCheckboxItem>
292292
)

‎packages/emcn/src/components/dropdown-menu/dropdown-menu.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ const DropdownMenuCheckboxItem = React.forwardRef<
477477
<DropdownMenuPrimitive.CheckboxItem
478478
ref={ref}
479479
className={cn(
480-
`relative flex ${MENU_ROW_HEIGHT_CLASS} min-w-0 cursor-default select-none items-center ${MENU_ROW_RADIUS_CLASS} whitespace-nowrap pr-2 pl-7 text-[var(--text-body)] text-small outline-hidden ${MENU_ROW_TRANSITION_CLASS} ${MENU_ROW_HIGHLIGHT_CLASS} data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,
480+
`relative flex ${MENU_ROW_HEIGHT_CLASS} min-w-0 cursor-default select-none items-center ${chipContentGap} ${MENU_ROW_RADIUS_CLASS} whitespace-nowrap pr-2 pl-7 text-[var(--text-body)] text-small outline-hidden ${MENU_ROW_TRANSITION_CLASS} ${MENU_ROW_HIGHLIGHT_CLASS} data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,
481481
className
482482
)}
483483
checked={checked}

0 commit comments

Comments
 (0)