@ndla/ui 50.10.0 → 50.10.1
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/es/Article/Article.js +3 -7
- package/es/FramedContent/FramedContent.js +1 -1
- package/es/Layout/LayoutItem.js +1 -1
- package/es/List/UnOrderedList.js +1 -1
- package/es/all.css +1 -1
- package/lib/Article/Article.js +2 -6
- package/lib/FramedContent/FramedContent.js +1 -1
- package/lib/Layout/LayoutItem.js +1 -1
- package/lib/List/UnOrderedList.js +1 -1
- package/lib/all.css +1 -1
- package/package.json +3 -3
- package/src/Article/Article.tsx +1 -7
- package/src/Article/component.article.scss +0 -9
- package/src/FramedContent/FramedContent.tsx +0 -8
- package/src/Layout/LayoutItem.tsx +1 -1
- package/src/List/UnOrderedList.tsx +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ndla/ui",
|
|
3
|
-
"version": "50.10.
|
|
3
|
+
"version": "50.10.1",
|
|
4
4
|
"description": "UI component library for NDLA.",
|
|
5
5
|
"license": "GPL-3.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@ndla/carousel": "^4.0.33",
|
|
37
37
|
"@ndla/core": "^4.4.2",
|
|
38
38
|
"@ndla/dropdown-menu": "^1.0.30",
|
|
39
|
-
"@ndla/forms": "^7.0.
|
|
39
|
+
"@ndla/forms": "^7.0.3",
|
|
40
40
|
"@ndla/hooks": "^2.1.5",
|
|
41
41
|
"@ndla/icons": "^5.0.12",
|
|
42
42
|
"@ndla/licenses": "^7.2.5",
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"publishConfig": {
|
|
82
82
|
"access": "public"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "6d5e717f95c71a9548584cf88493e22ed51f77b4"
|
|
85
85
|
}
|
package/src/Article/Article.tsx
CHANGED
|
@@ -10,7 +10,7 @@ import { ReactNode, useEffect, useRef, useState, forwardRef } from "react";
|
|
|
10
10
|
import BEMHelper from "react-bem-helper";
|
|
11
11
|
import styled from "@emotion/styled";
|
|
12
12
|
|
|
13
|
-
import { spacing,
|
|
13
|
+
import { spacing, mq, breakpoints } from "@ndla/core";
|
|
14
14
|
import { useIntersectionObserver } from "@ndla/hooks";
|
|
15
15
|
import { Heading, Text } from "@ndla/typography";
|
|
16
16
|
import { resizeObserver } from "@ndla/util";
|
|
@@ -100,12 +100,6 @@ const ArticleFavoritesButtonWrapper = styled.div`
|
|
|
100
100
|
${mq.range({ from: breakpoints.tablet })} {
|
|
101
101
|
transform: translate(${spacing.normal}, -${spacing.medium});
|
|
102
102
|
}
|
|
103
|
-
${mq.range({ from: breakpoints.tabletWide })} {
|
|
104
|
-
transform: translate(${spacing.large}, -${spacing.medium});
|
|
105
|
-
}
|
|
106
|
-
${mq.range({ from: breakpoints.desktop })} {
|
|
107
|
-
transform: translate(${spacingUnit * 5.5}px, -${spacing.medium});
|
|
108
|
-
}
|
|
109
103
|
`;
|
|
110
104
|
|
|
111
105
|
type Props = {
|
|
@@ -145,10 +145,6 @@
|
|
|
145
145
|
.c-article__title--icon {
|
|
146
146
|
padding-left: 80px;
|
|
147
147
|
|
|
148
|
-
@include mq(desktop) {
|
|
149
|
-
padding-left: 0;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
148
|
[data-badge] {
|
|
153
149
|
position: absolute;
|
|
154
150
|
left: 0;
|
|
@@ -156,10 +152,5 @@
|
|
|
156
152
|
@include mq(tablet) {
|
|
157
153
|
top: $spacing--xsmall;
|
|
158
154
|
}
|
|
159
|
-
|
|
160
|
-
@include mq(desktop) {
|
|
161
|
-
left: -80px;
|
|
162
|
-
top: $spacing--xsmall;
|
|
163
|
-
}
|
|
164
155
|
}
|
|
165
156
|
}
|
|
@@ -33,14 +33,6 @@ const StyledFramedContent = styled.div`
|
|
|
33
33
|
margin-left: 0;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
|
|
37
|
-
&:first-child {
|
|
38
|
-
margin-top: 0;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
&:last-child {
|
|
42
|
-
margin-bottom: 0;
|
|
43
|
-
}
|
|
44
36
|
`;
|
|
45
37
|
|
|
46
38
|
const FramedContent = forwardRef<HTMLDivElement, ComponentPropsWithRef<"div">>(({ children, ...rest }, ref) => (
|
|
@@ -18,7 +18,7 @@ export const LayoutItem = ({ children, layout, ...rest }: Props) => {
|
|
|
18
18
|
if (layout === "extend") {
|
|
19
19
|
return "u-10/12@desktop u-push-1/12@desktop u-10/12@tablet u-push-1/12@tablet";
|
|
20
20
|
} else if (layout === "center") {
|
|
21
|
-
return "u-
|
|
21
|
+
return "u-10/12 u-push-1/12";
|
|
22
22
|
}
|
|
23
23
|
return undefined;
|
|
24
24
|
}, [layout]);
|
|
@@ -12,11 +12,11 @@ import { colors, fonts, spacing } from "@ndla/core";
|
|
|
12
12
|
|
|
13
13
|
const StyledUl = styled.ul`
|
|
14
14
|
padding-left: ${spacing.nsmall};
|
|
15
|
-
margin
|
|
16
|
-
${fonts.
|
|
15
|
+
margin: ${spacing.normal} 0 ${spacing.normal} ${spacing.normal};
|
|
16
|
+
${fonts.size.text.content};
|
|
17
17
|
|
|
18
18
|
ul {
|
|
19
|
-
margin
|
|
19
|
+
margin: 0;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
> li {
|