@seanyeh77/ui 0.6.0 → 0.6.1

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/index.js CHANGED
@@ -689,22 +689,20 @@ function MobileTabBar({ items, value, onChange, label, className }) {
689
689
  right: `calc(${100 - idx * w - w / 2}% - 28px)`,
690
690
  transition: dropTransition("left", "right", forward)
691
691
  }
692
- }), items.map((t, i) => /* @__PURE__ */ jsxs("button", {
692
+ }), items.map((t, i) => /* @__PURE__ */ jsx("button", {
693
693
  type: "button",
694
694
  className: cx("ui-tabbar-item", i === idx && "is-selected"),
695
+ "aria-label": t.label,
695
696
  "aria-current": i === idx ? "page" : void 0,
696
697
  onClick: () => {
697
698
  if (i !== idx) setForward(i > idx);
698
699
  onChange?.(t.id);
699
700
  },
700
- children: [/* @__PURE__ */ jsx(IconOf, {
701
+ children: /* @__PURE__ */ jsx(IconOf, {
701
702
  icon: t.icon,
702
703
  size: 22,
703
704
  filled: i === idx
704
- }), /* @__PURE__ */ jsx("span", {
705
- className: "ui-tabbar-label",
706
- children: t.label
707
- })]
705
+ })
708
706
  }, t.id))]
709
707
  });
710
708
  }