@jsenv/navi 0.12.24 → 0.12.25

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.
@@ -13915,9 +13915,17 @@ const Icon = ({
13915
13915
  if (width !== undefined || height !== undefined) {
13916
13916
  box = true;
13917
13917
  }
13918
+ const ariaProps = decorative ? {
13919
+ "aria-hidden": "true"
13920
+ } : {
13921
+ role,
13922
+ "aria-label": ariaLabel
13923
+ };
13918
13924
  if (box) {
13919
13925
  return jsx(Box, {
13920
13926
  ...props,
13927
+ ...ariaProps,
13928
+ box: box,
13921
13929
  baseClassName: "navi_icon",
13922
13930
  "data-width": width,
13923
13931
  "data-height": height,
@@ -13927,12 +13935,6 @@ const Icon = ({
13927
13935
  });
13928
13936
  }
13929
13937
  const invisibleText = baseChar.repeat(charWidth);
13930
- const ariaProps = decorative ? {
13931
- "aria-hidden": "true"
13932
- } : {
13933
- role,
13934
- "aria-label": ariaLabel
13935
- };
13936
13938
  return jsxs(Text, {
13937
13939
  ...props,
13938
13940
  ...ariaProps,