@lumx/react 4.15.0-alpha.0 → 4.15.0-next.0

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/index.js CHANGED
@@ -1687,7 +1687,7 @@ const IconButton$1 = props => {
1687
1687
  size = DEFAULT_PROPS$1a.size,
1688
1688
  ...forwardedProps
1689
1689
  } = props;
1690
- const iconNode = image ? /*#__PURE__*/jsx("img", {
1690
+ const defaultChildren = image ? /*#__PURE__*/jsx("img", {
1691
1691
  // no need to set alt as an aria-label is already set on the button
1692
1692
  alt: "",
1693
1693
  src: image
@@ -1698,13 +1698,9 @@ const IconButton$1 = props => {
1698
1698
  emphasis,
1699
1699
  size,
1700
1700
  ...forwardedProps,
1701
+ 'aria-label': label,
1701
1702
  variant: 'icon',
1702
- children: /*#__PURE__*/jsxs(Fragment, {
1703
- children: [iconNode, /*#__PURE__*/jsx("span", {
1704
- className: visuallyHidden(),
1705
- children: label
1706
- })]
1707
- })
1703
+ children: defaultChildren
1708
1704
  });
1709
1705
  };
1710
1706
  IconButton$1.displayName = COMPONENT_NAME$1r;