@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.mjs CHANGED
@@ -5491,22 +5491,34 @@ var TrustpilotTestimonial = ({
5491
5491
  }
5492
5492
  ) }),
5493
5493
  items.length > 1 && (canPrev || canNext) && /* @__PURE__ */ jsxs40("div", { className: "testimonial__tp-nav", children: [
5494
- canPrev && /* @__PURE__ */ jsx44(
5494
+ /* @__PURE__ */ jsx44(
5495
5495
  "button",
5496
5496
  {
5497
5497
  type: "button",
5498
- className: "testimonial__tp-nav-btn",
5498
+ className: [
5499
+ "testimonial__tp-nav-btn",
5500
+ !canPrev ? "testimonial__tp-nav-btn--hidden" : ""
5501
+ ].filter(Boolean).join(" "),
5499
5502
  "aria-label": "Show previous testimonials",
5503
+ "aria-hidden": !canPrev,
5504
+ tabIndex: canPrev ? 0 : -1,
5505
+ disabled: !canPrev,
5500
5506
  onClick: () => scrollByCard(-1),
5501
5507
  children: /* @__PURE__ */ jsx44(ArrowIcon, { direction: "prev" })
5502
5508
  }
5503
5509
  ),
5504
- canNext && /* @__PURE__ */ jsx44(
5510
+ /* @__PURE__ */ jsx44(
5505
5511
  "button",
5506
5512
  {
5507
5513
  type: "button",
5508
- className: "testimonial__tp-nav-btn",
5514
+ className: [
5515
+ "testimonial__tp-nav-btn",
5516
+ !canNext ? "testimonial__tp-nav-btn--hidden" : ""
5517
+ ].filter(Boolean).join(" "),
5509
5518
  "aria-label": "Show next testimonials",
5519
+ "aria-hidden": !canNext,
5520
+ tabIndex: canNext ? 0 : -1,
5521
+ disabled: !canNext,
5510
5522
  onClick: () => scrollByCard(1),
5511
5523
  children: /* @__PURE__ */ jsx44(ArrowIcon, { direction: "next" })
5512
5524
  }