diff --git a/packages/braid-design-system/src/lib/components/MenuItem/useMenuItem.tsx b/packages/braid-design-system/src/lib/components/MenuItem/useMenuItem.tsx index 4c53244871..af5a01c65b 100644 --- a/packages/braid-design-system/src/lib/components/MenuItem/useMenuItem.tsx +++ b/packages/braid-design-system/src/lib/components/MenuItem/useMenuItem.tsx @@ -26,7 +26,6 @@ import { iconSlotSpace } from '../private/iconSlotSpace'; import { badgeSlotSpace } from '../private/badgeSlotSpace'; import { virtualTouchable } from '../private/touchable/virtualTouchable.css'; import { DefaultBadgePropsProvider } from '../Badge/defaultBadgeProps'; -import { Inline } from '../Inline/Inline'; const { MENU_ITEM_UP, @@ -181,19 +180,25 @@ export function MenuItemLeftSlot({ children }: { children?: ReactNode }) { const iconSpace = useBraidTheme().legacy ? 'small' : iconSlotSpace; return ( - - - - -   - + + +   + + {children ? ( + + {children} - {children ? ( - - {children} - - ) : null} - + ) : null} ); } @@ -229,7 +234,7 @@ function MenuItemChildren({ const { size, reserveIconSpace } = menuRendererContext; return ( - + {!formElement && (icon || reserveIconSpace) ? ( {badge} ) : null} - + ); }