@deriv-web-design/ui 0.1.8 → 0.1.9

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
@@ -5571,22 +5571,34 @@ var TrustpilotTestimonial = ({
5571
5571
  }
5572
5572
  ) }),
5573
5573
  items.length > 1 && (canPrev || canNext) && /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "testimonial__tp-nav", children: [
5574
- canPrev && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
5574
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
5575
5575
  "button",
5576
5576
  {
5577
5577
  type: "button",
5578
- className: "testimonial__tp-nav-btn",
5578
+ className: [
5579
+ "testimonial__tp-nav-btn",
5580
+ !canPrev ? "testimonial__tp-nav-btn--hidden" : ""
5581
+ ].filter(Boolean).join(" "),
5579
5582
  "aria-label": "Show previous testimonials",
5583
+ "aria-hidden": !canPrev,
5584
+ tabIndex: canPrev ? 0 : -1,
5585
+ disabled: !canPrev,
5580
5586
  onClick: () => scrollByCard(-1),
5581
5587
  children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ArrowIcon, { direction: "prev" })
5582
5588
  }
5583
5589
  ),
5584
- canNext && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
5590
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
5585
5591
  "button",
5586
5592
  {
5587
5593
  type: "button",
5588
- className: "testimonial__tp-nav-btn",
5594
+ className: [
5595
+ "testimonial__tp-nav-btn",
5596
+ !canNext ? "testimonial__tp-nav-btn--hidden" : ""
5597
+ ].filter(Boolean).join(" "),
5589
5598
  "aria-label": "Show next testimonials",
5599
+ "aria-hidden": !canNext,
5600
+ tabIndex: canNext ? 0 : -1,
5601
+ disabled: !canNext,
5590
5602
  onClick: () => scrollByCard(1),
5591
5603
  children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ArrowIcon, { direction: "next" })
5592
5604
  }