@ndla/primitives 1.0.10-alpha.0 → 1.0.12-alpha.0

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.
@@ -598,6 +598,7 @@
598
598
  "--arrow-background]___[value:colors.surface.action",
599
599
  "height]___[value:200px",
600
600
  "objectFit]___[value:cover",
601
+ "minHeight]___[value:3xlarge",
601
602
  "borderBlockWidth]___[value:1px",
602
603
  "borderInlineColor]___[value:transparent",
603
604
  "transitionProperty]___[value:background-color, border-color, color",
@@ -606,6 +607,8 @@
606
607
  "background]___[value:var(--background-hover)]___[cond:_hover",
607
608
  "background]___[value:var(--background-hover)]___[cond:_highlighted",
608
609
  "background]___[value:var(--background-current)]___[cond:&[aria-current=\"true\"], &[aria-current=\"page\"]",
610
+ "borderBlockStartColor]___[value:transparent]___[cond:&[aria-current=\"true\"], &[aria-current=\"page\"]",
611
+ "borderBlockEndColor]___[value:transparent]___[cond:&[aria-current=\"true\"], &[aria-current=\"page\"]",
609
612
  "color]___[value:var(--color-current-hover)]___[cond:&[aria-current=\"true\"], &[aria-current=\"page\"]",
610
613
  "background]___[value:var(--background-hover)]___[cond:&[aria-current=\"true\"], &[aria-current=\"page\"]<___>_hover",
611
614
  "color]___[value:text.default]___[cond:&[aria-current=\"true\"], &[aria-current=\"page\"]<___>_hover",
package/dist/styles.css CHANGED
@@ -877,6 +877,10 @@
877
877
  object-fit: cover;
878
878
  }
879
879
 
880
+ .min-h_3xlarge {
881
+ min-height: var(--sizes-3xlarge);
882
+ }
883
+
880
884
  .bd-y-w_1px {
881
885
  border-block-width: 1px;
882
886
  }
@@ -1829,6 +1833,14 @@
1829
1833
  outline-color: var(--colors-stroke-hover);
1830
1834
  }
1831
1835
 
1836
+ .\[\&\[aria-current\=\"true\"\]\,_\&\[aria-current\=\"page\"\]\]\:bd-bs-c_transparent[aria-current="true"],.\[\&\[aria-current\=\"true\"\]\,_\&\[aria-current\=\"page\"\]\]\:bd-bs-c_transparent[aria-current="page"] {
1837
+ border-block-start-color: transparent;
1838
+ }
1839
+
1840
+ .\[\&\[aria-current\=\"true\"\]\,_\&\[aria-current\=\"page\"\]\]\:bd-be-c_transparent[aria-current="true"],.\[\&\[aria-current\=\"true\"\]\,_\&\[aria-current\=\"page\"\]\]\:bd-be-c_transparent[aria-current="page"] {
1841
+ border-block-end-color: transparent;
1842
+ }
1843
+
1832
1844
  .first\:bd-bs-c_transparent:first-child {
1833
1845
  border-block-start-color: transparent;
1834
1846
  }
@@ -12,15 +12,13 @@ import { sva } from "@ndla/styled-system/css";
12
12
  import { createStyleContext } from "../createStyleContext";
13
13
  import { Image } from "../Image";
14
14
  import { Heading } from "../Text";
15
-
16
- // TODO: Focus ring on current items is not visible
17
15
  import { jsx as _jsx } from "react/jsx-runtime";
18
16
  export const listItemRecipe = sva({
19
17
  slots: ["root", "title", "content", "image"],
20
18
  base: {
21
19
  root: {
20
+ minHeight: "3xlarge",
22
21
  borderBlockWidth: "1px",
23
- background: "surface.default",
24
22
  borderInlineColor: "transparent",
25
23
  color: "text.default",
26
24
  position: "relative",
@@ -40,6 +38,8 @@ export const listItemRecipe = sva({
40
38
  },
41
39
  '&[aria-current="true"], &[aria-current="page"]': {
42
40
  background: "var(--background-current)",
41
+ borderBlockStartColor: "transparent",
42
+ borderBlockEndColor: "transparent",
43
43
  color: "var(--color-current-hover)",
44
44
  _hover: {
45
45
  background: "var(--background-hover)",
@@ -19,14 +19,12 @@ var _jsxRuntime = require("react/jsx-runtime");
19
19
  *
20
20
  */
21
21
 
22
- // TODO: Focus ring on current items is not visible
23
-
24
22
  const listItemRecipe = exports.listItemRecipe = (0, _css.sva)({
25
23
  slots: ["root", "title", "content", "image"],
26
24
  base: {
27
25
  root: {
26
+ minHeight: "3xlarge",
28
27
  borderBlockWidth: "1px",
29
- background: "surface.default",
30
28
  borderInlineColor: "transparent",
31
29
  color: "text.default",
32
30
  position: "relative",
@@ -46,6 +44,8 @@ const listItemRecipe = exports.listItemRecipe = (0, _css.sva)({
46
44
  },
47
45
  '&[aria-current="true"], &[aria-current="page"]': {
48
46
  background: "var(--background-current)",
47
+ borderBlockStartColor: "transparent",
48
+ borderBlockEndColor: "transparent",
49
49
  color: "var(--color-current-hover)",
50
50
  _hover: {
51
51
  background: "var(--background-hover)",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndla/primitives",
3
- "version": "1.0.10-alpha.0",
3
+ "version": "1.0.12-alpha.0",
4
4
  "description": "Primitive components for NDLA.",
5
5
  "license": "GPL-3.0",
6
6
  "main": "lib/index.js",
@@ -43,5 +43,5 @@
43
43
  "publishConfig": {
44
44
  "access": "public"
45
45
  },
46
- "gitHead": "309461b1f7b791740d6cc5e430c4c96a891ac10e"
46
+ "gitHead": "fd50e914af42f70fda68083094768e248c4171a2"
47
47
  }