@bonniernews/dn-design-system-web 3.0.0-alpha.83 → 3.0.0-alpha.85
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/CHANGELOG.md +18 -0
- package/components/teaser-large/teaser-large.njk +22 -19
- package/components/teaser-large/teaser-large.scss +19 -45
- package/components/teaser-onsite/teaser-onsite.njk +2 -2
- package/components/teaser-right-now/teaser-right-now.njk +1 -1
- package/components/teaser-slideshow/teaser-slideshow.njk +2 -2
- package/components/teaser-split/teaser-split.njk +1 -1
- package/components/teaser-standard/teaser-standard.njk +1 -1
- package/components/teaser-tipsa/teaser-tipsa.njk +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,24 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.0.0-alpha.85](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.84...@bonniernews/dn-design-system-web@3.0.0-alpha.85) (2023-06-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **web:** gubbe alltid bredvid rubbe ([#863](https://github.com/BonnierNews/dn-design-system/issues/863)) ([59b6842](https://github.com/BonnierNews/dn-design-system/commit/59b68425f4e914f5859ca946b5250030bde2c018))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## [3.0.0-alpha.84](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.83...@bonniernews/dn-design-system-web@3.0.0-alpha.84) (2023-06-05)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* **web:** dont mark non-html fields as safe ([#867](https://github.com/BonnierNews/dn-design-system/issues/867)) ([56e5b66](https://github.com/BonnierNews/dn-design-system/commit/56e5b66c498e26428204bee766d69d52f5524207))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
6
24
|
## [3.0.0-alpha.83](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.82...@bonniernews/dn-design-system-web@3.0.0-alpha.83) (2023-06-02)
|
|
7
25
|
|
|
8
26
|
|
|
@@ -62,27 +62,30 @@
|
|
|
62
62
|
{% endif %}
|
|
63
63
|
|
|
64
64
|
<div class="{{ componentClassName + '__content'}}">
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
<h2 class="ds-teaser__title">
|
|
69
|
-
{% if params.highlight %}
|
|
70
|
-
<span class="{{ componentClassName + '__highlight'}}">{{ params.highlight }}</span>
|
|
65
|
+
<div class="ds-teaser__content-inner">
|
|
66
|
+
{% if params.vignette %}
|
|
67
|
+
<div class="ds-teaser__vignette">{{ params.vignette }}</div>
|
|
71
68
|
{% endif %}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
{% if params.text and params.areaType !== "right" %}
|
|
76
|
-
<p class="{{ componentClassName + '__text' }}">
|
|
77
|
-
{{ getDotOrGrade({ flashing: params.isFlashingDot, grade: params.grade }) }}
|
|
78
|
-
{% if params.sticker %}
|
|
79
|
-
<span class="ds-teaser__sticker">
|
|
80
|
-
{{ params.sticker }}
|
|
81
|
-
</span>
|
|
69
|
+
<h2 class="ds-teaser__title">
|
|
70
|
+
{% if params.highlight %}
|
|
71
|
+
<span class="{{ componentClassName + '__highlight'}}">{{ params.highlight }}</span>
|
|
82
72
|
{% endif %}
|
|
83
|
-
{{ params.
|
|
84
|
-
</
|
|
85
|
-
|
|
73
|
+
{{ params.title }}
|
|
74
|
+
</h2>
|
|
75
|
+
|
|
76
|
+
{% if params.text and params.areaType !== "right" %}
|
|
77
|
+
<p class="{{ componentClassName + '__text' }}">
|
|
78
|
+
{{ getDotOrGrade({ flashing: params.isFlashingDot, grade: params.grade }) }}
|
|
79
|
+
{% if params.sticker %}
|
|
80
|
+
<span class="ds-teaser__sticker">
|
|
81
|
+
{{ params.sticker }}
|
|
82
|
+
</span>
|
|
83
|
+
{% endif %}
|
|
84
|
+
{{ params.text }}
|
|
85
|
+
</p>
|
|
86
|
+
{% endif %}
|
|
87
|
+
</div>
|
|
88
|
+
|
|
86
89
|
{% if params.bylineHtml %}
|
|
87
90
|
<div class="{{ componentClassName + '__byline'}}">
|
|
88
91
|
{{ params.bylineHtml | safe }}
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
@use "../../assets/teaser/teaser.scss" as *;
|
|
3
3
|
|
|
4
4
|
.ds-teaser.ds-teaser--large {
|
|
5
|
-
display:
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
6
7
|
position: relative;
|
|
7
8
|
|
|
8
9
|
.ds-teaser__media {
|
|
@@ -12,10 +13,8 @@
|
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
.ds-teaser__content {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
grid-auto-rows: auto;
|
|
18
|
-
grid-template-columns: 1fr auto;
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: row;
|
|
19
18
|
@include ds-spacing-layout($ds-sl-teaser-vertical $ds-sl-teaser-horizontal);
|
|
20
19
|
|
|
21
20
|
// Special case for large teaser, should be replaced with dynamic spacing layout token when available
|
|
@@ -25,6 +24,12 @@
|
|
|
25
24
|
@include ds-mq-smallest-breakpoint(tablet) {
|
|
26
25
|
padding-bottom: ds-spacing-component($ds-sc-x4);
|
|
27
26
|
}
|
|
27
|
+
|
|
28
|
+
.ds-teaser__content-inner {
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
flex: 1;
|
|
32
|
+
}
|
|
28
33
|
}
|
|
29
34
|
|
|
30
35
|
&:focus-visible {
|
|
@@ -35,13 +40,7 @@
|
|
|
35
40
|
}
|
|
36
41
|
}
|
|
37
42
|
|
|
38
|
-
.ds-teaser__vignette {
|
|
39
|
-
grid-column: 1;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
43
|
.ds-teaser__title {
|
|
43
|
-
grid-row: 1;
|
|
44
|
-
grid-column: 1 / span 1;
|
|
45
44
|
@include ds-typography($ds-typography-expressive-heading04bold);
|
|
46
45
|
}
|
|
47
46
|
|
|
@@ -51,35 +50,10 @@
|
|
|
51
50
|
}
|
|
52
51
|
}
|
|
53
52
|
|
|
54
|
-
.ds-teaser__vignette + .ds-teaser__title {
|
|
55
|
-
grid-row: 2;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.ds-teaser__text {
|
|
59
|
-
grid-row: 3;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
53
|
&.ds-teaser--large-big-italic {
|
|
63
54
|
.ds-teaser__title {
|
|
64
55
|
@include ds-typography($ds-typography-expressive-heading04italicregular);
|
|
65
56
|
}
|
|
66
|
-
|
|
67
|
-
@include ds-mq-largest-breakpoint(mobile) {
|
|
68
|
-
.ds-teaser__title {
|
|
69
|
-
grid-column-end: span 2;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.ds-teaser__byline {
|
|
73
|
-
grid-row: 3;
|
|
74
|
-
margin-top: ds-spacing-component($ds-sc-x2);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
@include ds-mq-smallest-breakpoint(tablet) {
|
|
79
|
-
.ds-teaser__title {
|
|
80
|
-
grid-column-end: span 1;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
57
|
}
|
|
84
58
|
|
|
85
59
|
&.ds-teaser--large-italic {
|
|
@@ -95,11 +69,10 @@
|
|
|
95
69
|
}
|
|
96
70
|
|
|
97
71
|
.ds-teaser__byline {
|
|
98
|
-
grid-column: 2;
|
|
99
|
-
grid-row: 1 / span 3;
|
|
100
72
|
overflow: hidden;
|
|
101
73
|
position: relative;
|
|
102
74
|
margin-left: ds-spacing-component($ds-sc-x4);
|
|
75
|
+
|
|
103
76
|
// margin-bottom needs to be the negative value of padding-bottom on .ds-teaser__content
|
|
104
77
|
@include ds-mq-only-breakpoint(mobile) {
|
|
105
78
|
margin-bottom: ds-spacing-component($ds-sc-x3, "px", true);
|
|
@@ -112,9 +85,9 @@
|
|
|
112
85
|
position: absolute;
|
|
113
86
|
top: 0;
|
|
114
87
|
right: 0;
|
|
115
|
-
|
|
88
|
+
bottom: 0;
|
|
116
89
|
width: 100%;
|
|
117
|
-
min-width:
|
|
90
|
+
min-width: 96px;
|
|
118
91
|
margin: 0;
|
|
119
92
|
|
|
120
93
|
> .picture__img {
|
|
@@ -125,15 +98,16 @@
|
|
|
125
98
|
}
|
|
126
99
|
|
|
127
100
|
@include ds-mq-largest-breakpoint(mobile) {
|
|
128
|
-
width:
|
|
129
|
-
min-height:
|
|
101
|
+
width: 96px;
|
|
102
|
+
min-height: 96px;
|
|
130
103
|
margin-left: ds-spacing-component($ds-sc-x2);
|
|
131
104
|
}
|
|
132
105
|
|
|
133
106
|
@include ds-mq-smallest-breakpoint(tablet) {
|
|
134
|
-
width:
|
|
107
|
+
width: 144px;
|
|
135
108
|
// En bylinebild bör va lika hög som en "grekisk byst" - man ska se lite skjortkrage!
|
|
136
109
|
min-height: 110px;
|
|
110
|
+
margin-left: ds-spacing-component($ds-sc-x4);
|
|
137
111
|
}
|
|
138
112
|
}
|
|
139
113
|
|
|
@@ -156,8 +130,8 @@
|
|
|
156
130
|
}
|
|
157
131
|
|
|
158
132
|
.ds-teaser__byline {
|
|
159
|
-
width:
|
|
160
|
-
min-height:
|
|
133
|
+
width: 96px;
|
|
134
|
+
min-height: 96px;
|
|
161
135
|
margin-left: ds-spacing-component($ds-sc-x2);
|
|
162
136
|
}
|
|
163
137
|
}
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
|
|
33
33
|
<div class="{{ componentClassName + '__content'}}">
|
|
34
34
|
<h2 class="ds-teaser__title">
|
|
35
|
-
PÅ PLATS | {{ params.title
|
|
35
|
+
PÅ PLATS | {{ params.title }}
|
|
36
36
|
</h2>
|
|
37
37
|
|
|
38
38
|
{% if params.text %}
|
|
39
39
|
<p class="{{ componentClassName + '__text'}}">
|
|
40
|
-
{{ params.text
|
|
40
|
+
{{ params.text }}
|
|
41
41
|
</p>
|
|
42
42
|
{% endif %}
|
|
43
43
|
</div>
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
<div class="{{ classes }}" {{ attributes | safe }}>
|
|
24
24
|
<div class="{{ componentClassName + '__content'}}">
|
|
25
25
|
<h2 class="ds-teaser__title">
|
|
26
|
-
{{ params.title
|
|
26
|
+
{{ params.title }}
|
|
27
27
|
</h2>
|
|
28
28
|
{% if params.text %}
|
|
29
29
|
<span class="{{ componentClassName + '__text'}}">
|
|
30
|
-
{{ params.text
|
|
30
|
+
{{ params.text }}
|
|
31
31
|
</span>
|
|
32
32
|
{% endif %}
|
|
33
33
|
</div>
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
|
|
19
19
|
<div class="{{ componentClassName + '__content'}}">
|
|
20
20
|
<h2 class="ds-teaser__title">
|
|
21
|
-
{{ params.title
|
|
21
|
+
{{ params.title }}
|
|
22
22
|
</h2>
|
|
23
23
|
|
|
24
24
|
{% if params.text %}
|
|
25
25
|
<p class="{{ componentClassName + '__text'}}">
|
|
26
|
-
{{ params.text
|
|
26
|
+
{{ params.text }}
|
|
27
27
|
</p>
|
|
28
28
|
{% endif %}
|
|
29
29
|
</div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bonniernews/dn-design-system-web",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.85",
|
|
4
4
|
"description": "DN design system for web.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"homepage": "https://github.com/BonnierNews/dn-design-system/tree/main/web/src#readme",
|