@eclass/ui-kit 1.54.7 → 1.54.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.
@@ -1870,6 +1870,11 @@ const NavBarButton = ({
1870
1870
  className: "nav-bar-button",
1871
1871
  id: isAccessibility ? "UserWayButton" : "",
1872
1872
  onClick: isAccessibility ? triggerWidget : onClick,
1873
+ _focusVisible: {
1874
+ outline: `3px solid ${vars("colors-alert-deepSkyBlue")}`,
1875
+ borderRadius: "2px"
1876
+ },
1877
+ tabIndex: 0,
1873
1878
  sx: {
1874
1879
  alignItems: "center",
1875
1880
  background: "none !important",
@@ -1918,9 +1923,11 @@ const NavBarButton = ({
1918
1923
  },
1919
1924
  children: [/* @__PURE__ */ jsx(Box, {
1920
1925
  className: "nav-bar-icon",
1926
+ tabIndex: -1,
1921
1927
  children: buttonType[type].icon
1922
1928
  }), !isMobile && /* @__PURE__ */ jsx(Box, {
1923
1929
  className: "nav-bar-text",
1930
+ tabIndex: -1,
1924
1931
  children: buttonType[type].text
1925
1932
  })]
1926
1933
  });
@@ -3338,7 +3345,9 @@ function BoxTraditional({
3338
3345
  data,
3339
3346
  modalPaymentText
3340
3347
  }) {
3341
- var _a, _b, _c, _d, _e, _f, _g, _h;
3348
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i;
3349
+ const isClickable = isCourseActive((_b = (_a = data.action) == null ? void 0 : _a.enabled) != null ? _b : false, (_c = data.Profile) == null ? void 0 : _c.id);
3350
+ const hasHref = !!((_d = data.action) == null ? void 0 : _d.href);
3342
3351
  const cssActive = {
3343
3352
  boxShadow: `0 2px 7px 0 ${vars("colors-neutral-silverSand")}`
3344
3353
  };
@@ -3348,23 +3357,27 @@ function BoxTraditional({
3348
3357
  as: "article",
3349
3358
  border: vars("borders-light"),
3350
3359
  borderRadius: vars("radii-big"),
3351
- cursor: "pointer",
3360
+ cursor: isClickable ? "pointer" : "default",
3352
3361
  transition: "box-shadow .3s",
3353
- _active: cssActive,
3354
- _hover: cssActive,
3355
- _focus: cssActive,
3356
3362
  overflow: "hidden",
3363
+ _hover: cssActive,
3364
+ _active: cssActive,
3365
+ _focusWithin: {
3366
+ boxShadow: `0 0 0 3px ${vars("colors-alert-deepSkyBlue")} inset`
3367
+ },
3368
+ tabIndex: !hasHref && isClickable ? 0 : void 0,
3369
+ role: "link",
3357
3370
  children: /* @__PURE__ */ jsx(WithRipples$1, {
3358
- enabled: isCourseActive((_b = (_a = data.action) == null ? void 0 : _a.enabled) != null ? _b : false, (_c = data.Profile) == null ? void 0 : _c.id),
3371
+ enabled: isCourseActive((_f = (_e = data.action) == null ? void 0 : _e.enabled) != null ? _f : false, (_g = data.Profile) == null ? void 0 : _g.id),
3359
3372
  children: /* @__PURE__ */ jsxs(Flex, {
3360
3373
  direction: "column",
3361
3374
  justify: "space-between",
3362
3375
  h: "100%",
3363
3376
  children: [/* @__PURE__ */ jsxs(Box, {
3364
3377
  className: "CourseList-TraditionalBox",
3365
- children: [!data.hasFinanzeFreezed && isCourseActive((_e = (_d = data.action) == null ? void 0 : _d.enabled) != null ? _e : false, (_f = data.Profile) == null ? void 0 : _f.id) && /* @__PURE__ */ jsx(LinkOverlay, {
3366
- href: (_g = data.action) == null ? void 0 : _g.href,
3367
- isExternal: (_h = data.action) == null ? void 0 : _h.targetBlank
3378
+ children: [isClickable && hasHref && /* @__PURE__ */ jsx(LinkOverlay, {
3379
+ href: (_h = data.action) == null ? void 0 : _h.href,
3380
+ isExternal: (_i = data.action) == null ? void 0 : _i.targetBlank
3368
3381
  }), /* @__PURE__ */ jsx(Header$1, {}), /* @__PURE__ */ jsx(Section, {})]
3369
3382
  }), /* @__PURE__ */ jsx(Footer, {
3370
3383
  modalPaymentText
@@ -3493,6 +3506,7 @@ function CourseList({
3493
3506
  return null;
3494
3507
  }
3495
3508
  return /* @__PURE__ */ jsx(Box, {
3509
+ className: "courseListBox",
3496
3510
  display: "grid",
3497
3511
  gridColumnGap: `${columnGap}rem`,
3498
3512
  gridRowGap: "1.75rem",