@bonniernews/dn-design-system-web 14.0.5-beta.0 → 14.1.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.
- package/CHANGELOG.md +2 -1
- package/components/group-header/README.md +1 -1
- package/components/group-header/group-header.njk +4 -1
- package/components/group-header/group-header.scss +13 -0
- package/components/tag-header/tag-header.scss +4 -4
- package/components/teaser-footer/teaser-footer.scss +2 -2
- package/components/teaser-large/teaser-large.scss +3 -3
- package/components/teaser-split/teaser-split.scss +1 -1
- package/components/teaser-standard/teaser-standard.scss +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,12 +4,13 @@ All changes to @bonniernews/dn-design-system-web will be documented in this file
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
## [14.
|
|
7
|
+
## [14.1.0](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@14.0.4...@bonniernews/dn-design-system-web@14.1.0) (2024-03-11)
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
### Features
|
|
11
11
|
|
|
12
12
|
* **app:** create ImageListItem and add font weight prop to all list items ([#1234](https://github.com/BonnierNews/dn-design-system/issues/1234)) ([73e06e9](https://github.com/BonnierNews/dn-design-system/commit/73e06e9df30f2bdb1677dd4bde015ddea9ddb185))
|
|
13
|
+
* **web:** support for images in group header ([#1235](https://github.com/BonnierNews/dn-design-system/issues/1235)) ([f4148dc](https://github.com/BonnierNews/dn-design-system/commit/f4148dc90b104326cd53e72f930510393bb533a6))
|
|
13
14
|
|
|
14
15
|
|
|
15
16
|
### Maintenance
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|parameter | type | required | options | default | description |
|
|
12
12
|
|:--- | :--- | :--- | :--- | :--- | :--- |
|
|
13
13
|
|title | string | yes | | | The title text |
|
|
14
|
-
|variant | string | no | icon, link, toggle, arrows | icon | The variant to render |
|
|
14
|
+
|variant | string | no | icon, link, toggle, arrows, image, bauta, bauataxl, image | icon | The variant to render |
|
|
15
15
|
|href | string | no | | | If given, the title is rendered as a link |
|
|
16
16
|
|linkText | string | no | | | The link text to render (only for variants `link` and `direkt`) |
|
|
17
17
|
|showBottomBorder | boolean | no | | | If true there will be a bottom border |
|
|
@@ -16,7 +16,10 @@
|
|
|
16
16
|
] | join(" ") %}
|
|
17
17
|
|
|
18
18
|
{% set groupHeaderInner %}
|
|
19
|
-
|
|
19
|
+
{% if params.variant == 'image' %}
|
|
20
|
+
<div class="{{ componentClassName + '__image'}}">{{ params.mediaHtml }}</div>
|
|
21
|
+
{% endif %}
|
|
22
|
+
<h2 class="{{ componentClassName + '__title'}}">{{ params.title }}</h2>
|
|
20
23
|
|
|
21
24
|
{% if params.variant == 'link' and params.linkText and params.href %}
|
|
22
25
|
<span class="{{ componentClassName + '__right-link' }}">
|
|
@@ -112,4 +112,17 @@
|
|
|
112
112
|
&--bautaxl .ds-group-header__title {
|
|
113
113
|
@include ds-typography($ds-typography-detailbaota-xl-label);
|
|
114
114
|
}
|
|
115
|
+
|
|
116
|
+
.ds-group-header__image {
|
|
117
|
+
margin-left: ds-spacing($ds-s-100);
|
|
118
|
+
max-height: 24px;
|
|
119
|
+
|
|
120
|
+
figure {
|
|
121
|
+
margin: 0;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
+ .ds-group-header__title {
|
|
125
|
+
padding-left: ds-spacing($ds-s-075);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
115
128
|
}
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
.ds-tag-header__vignette {
|
|
36
|
-
@include ds-typography($ds-typography-
|
|
36
|
+
@include ds-typography($ds-typography-functional-meta02bold);
|
|
37
37
|
color: $ds-theme-color;
|
|
38
38
|
margin-bottom: ds-spacing($ds-s-025);
|
|
39
39
|
display: block;
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
.ds-tag-header__title {
|
|
47
|
-
@include ds-typography($ds-typography-
|
|
47
|
+
@include ds-typography($ds-typography-functional-heading03bold);
|
|
48
48
|
color: $ds-color-text-primary;
|
|
49
49
|
margin: 0;
|
|
50
50
|
word-break: break-word;
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
.ds-tag-header__description {
|
|
63
|
-
@include ds-typography($ds-typography-
|
|
63
|
+
@include ds-typography($ds-typography-functional-body02regular);
|
|
64
64
|
color: $ds-color-text-primary;
|
|
65
65
|
margin: ds-spacing($ds-s-100 $ds-s-100 0);
|
|
66
66
|
border-top: ds-metrics-border-width(x1) solid $ds-color-border-primary;
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
|
|
73
73
|
b,
|
|
74
74
|
strong {
|
|
75
|
-
@include ds-typography($ds-typography-
|
|
75
|
+
@include ds-typography($ds-typography-functional-body02semibold);
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
p {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.ds-teaser-footer__notes {
|
|
12
|
-
@include ds-typography($ds-typography-
|
|
12
|
+
@include ds-typography($ds-typography-functional-meta02regular);
|
|
13
13
|
display: block;
|
|
14
14
|
color: $ds-color-text-primary-02;
|
|
15
15
|
}
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
margin-top: ds-spacing($ds-s-050);
|
|
22
22
|
|
|
23
23
|
.ds-teaser-footer__title {
|
|
24
|
-
@include ds-typography($ds-typography-
|
|
24
|
+
@include ds-typography($ds-typography-functional-body01semibold);
|
|
25
25
|
color: $ds-color-text-primary;
|
|
26
26
|
}
|
|
27
27
|
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
.ds-teaser__title {
|
|
36
|
-
@include ds-typography($ds-typography-
|
|
36
|
+
@include ds-typography($ds-typography-expressive-heading04bold);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
@include ds-hover(true) {
|
|
@@ -44,13 +44,13 @@
|
|
|
44
44
|
|
|
45
45
|
&.ds-teaser--large-big-italic {
|
|
46
46
|
.ds-teaser__title {
|
|
47
|
-
@include ds-typography($ds-typography-
|
|
47
|
+
@include ds-typography($ds-typography-expressive-heading04italicregular);
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
&.ds-teaser--large-italic {
|
|
52
52
|
.ds-teaser__title {
|
|
53
|
-
@include ds-typography($ds-typography-
|
|
53
|
+
@include ds-typography($ds-typography-expressive-heading03italicregular);
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
@include ds-hover(true) {
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
overflow: hidden;
|
|
8
8
|
|
|
9
9
|
.ds-teaser__title {
|
|
10
|
-
@include ds-typography($ds-typography-
|
|
10
|
+
@include ds-typography($ds-typography-expressive-heading03bold);
|
|
11
11
|
|
|
12
12
|
&--italic {
|
|
13
|
-
@include ds-typography($ds-typography-
|
|
13
|
+
@include ds-typography($ds-typography-expressive-heading03italicregular);
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
package/package.json
CHANGED