@ndla/ui 50.8.1 → 50.8.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndla/ui",
3
- "version": "50.8.1",
3
+ "version": "50.8.2",
4
4
  "description": "UI component library for NDLA.",
5
5
  "license": "GPL-3.0",
6
6
  "main": "lib/index.js",
@@ -31,23 +31,23 @@
31
31
  "types"
32
32
  ],
33
33
  "dependencies": {
34
- "@ndla/accordion": "^3.0.20",
35
- "@ndla/button": "^12.0.25",
36
- "@ndla/carousel": "^4.0.25",
37
- "@ndla/core": "^4.3.4",
38
- "@ndla/dropdown-menu": "^1.0.24",
39
- "@ndla/forms": "^5.2.15",
34
+ "@ndla/accordion": "^3.0.21",
35
+ "@ndla/button": "^12.0.26",
36
+ "@ndla/carousel": "^4.0.26",
37
+ "@ndla/core": "^4.3.5",
38
+ "@ndla/dropdown-menu": "^1.0.25",
39
+ "@ndla/forms": "^5.2.16",
40
40
  "@ndla/hooks": "^2.1.5",
41
- "@ndla/icons": "^5.0.4",
41
+ "@ndla/icons": "^5.0.5",
42
42
  "@ndla/licenses": "^7.2.5",
43
- "@ndla/modal": "^5.0.24",
44
- "@ndla/notion": "^6.0.25",
45
- "@ndla/safelink": "^4.1.50",
46
- "@ndla/select": "^3.2.11",
47
- "@ndla/switch": "^1.1.30",
48
- "@ndla/tabs": "^3.2.10",
49
- "@ndla/tooltip": "^6.0.12",
50
- "@ndla/typography": "^0.4.7",
43
+ "@ndla/modal": "^5.0.25",
44
+ "@ndla/notion": "^6.0.26",
45
+ "@ndla/safelink": "^4.1.51",
46
+ "@ndla/select": "^3.2.12",
47
+ "@ndla/switch": "^1.1.31",
48
+ "@ndla/tabs": "^3.2.11",
49
+ "@ndla/tooltip": "^6.0.13",
50
+ "@ndla/typography": "^0.4.8",
51
51
  "@ndla/util": "^4.0.4",
52
52
  "@radix-ui/react-popover": "^1.0.7",
53
53
  "@radix-ui/react-slider": "^1.1.2",
@@ -81,5 +81,5 @@
81
81
  "publishConfig": {
82
82
  "access": "public"
83
83
  },
84
- "gitHead": "9d844b2508b4268099ea16ef69f14c273c4b4033"
84
+ "gitHead": "ca60118709ca3cd878081b8ea0d20d1100b54508"
85
85
  }
@@ -34,7 +34,7 @@ const ArticleHeaderWrapper = ({ children, competenceGoals }: Props) => {
34
34
  return (
35
35
  <div {...classes("header")}>
36
36
  {children}
37
- {competenceGoals}
37
+ <div {...classes("competence")}>{competenceGoals}</div>
38
38
  </div>
39
39
  );
40
40
  };
@@ -60,7 +60,7 @@
60
60
  }
61
61
 
62
62
  &:after {
63
- content: '';
63
+ content: "";
64
64
  display: table;
65
65
  clear: both;
66
66
  }
@@ -110,6 +110,10 @@
110
110
  }
111
111
  }
112
112
 
113
+ .c-article__competence {
114
+ margin-top: $spacing;
115
+ }
116
+
113
117
  .c-article__title {
114
118
  position: relative;
115
119
 
@@ -103,16 +103,10 @@ const ItemContexts = ({ contexts, id, title }: ItemContextsType) => {
103
103
  <Additional
104
104
  size="normal"
105
105
  color={colors.brand.dark}
106
- aria-hidden={false}
107
- title={t("resource.tooltipAdditionalTopic")}
106
+ aria-label={t("resource.tooltipAdditionalTopic")}
108
107
  />
109
108
  ) : (
110
- <Core
111
- size="normal"
112
- color={colors.brand.primary}
113
- title={t("resource.tooltipCoreTopic")}
114
- aria-hidden={false}
115
- />
109
+ <Core size="normal" color={colors.brand.primary} aria-label={t("resource.tooltipCoreTopic")} />
116
110
  )}
117
111
  </Breadcrumb>
118
112
  </ContextListItem>