@aurora-ds/components 0.15.1 → 0.15.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -1425,7 +1425,8 @@ const MENU_ITEM_STYLES = createStyles((theme) => ({
1425
1425
  outline: 'none',
1426
1426
  border: 'none',
1427
1427
  cursor: 'pointer',
1428
- height: MENU_ITEM_SIZE,
1428
+ minHeight: MENU_ITEM_SIZE,
1429
+ maxHeight: MENU_ITEM_SIZE,
1429
1430
  flexShrink: 0,
1430
1431
  transition: 'background-color 150ms ease-in-out',
1431
1432
  ':hover': {
@@ -1435,7 +1436,7 @@ const MENU_ITEM_STYLES = createStyles((theme) => ({
1435
1436
  }));
1436
1437
 
1437
1438
  const MenuItem = ({ label, icon, onClick, textColor, iconColor }) => {
1438
- return (jsxs("button", { className: MENU_ITEM_STYLES.root, onClick: onClick, children: [icon && (jsx(Icon, { color: iconColor ?? 'text', children: icon })), jsx(Text, { variant: 'label', color: textColor ?? 'text', children: label })] }));
1439
+ return (jsxs("button", { className: MENU_ITEM_STYLES.root, onClick: onClick, children: [icon && (jsx(Icon, { color: iconColor ?? 'text', children: icon })), jsx(Text, { variant: 'label', color: textColor ?? 'text', maxLines: 1, children: label })] }));
1439
1440
  };
1440
1441
  MenuItem.displayName = 'MenuItem';
1441
1442