@bonniernews/dn-design-system-web 6.0.1 → 6.0.3
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 +17 -0
- package/components/teaser-native/teaser-native.njk +28 -26
- package/components/teaser-native/teaser-native.scss +4 -10
- package/foundations/variables/typographyTokensScreenExtraLarge.scss +1 -1
- package/foundations/variables/typographyTokensScreenLarge.scss +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,23 @@
|
|
|
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
|
+
## 6.0.3 (2023-10-02)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## 6.0.2 (2023-10-02)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **web:** hover native teasers ([#1028](https://github.com/BonnierNews/dn-design-system/issues/1028)) ([22204a1](https://github.com/BonnierNews/dn-design-system/commit/22204a12f70f0ca91e5dffadb0433586112b11f7))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
6
23
|
## 6.0.1 (2023-09-29)
|
|
7
24
|
|
|
8
25
|
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
@@ -17,36 +17,38 @@
|
|
|
17
17
|
attributes: params.attributes,
|
|
18
18
|
classNames: extraClasses
|
|
19
19
|
}) %}
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
|
|
21
|
+
<div class="{{ componentClassName + '__ad-bar'}}">
|
|
22
|
+
<span>ANNONS</span>
|
|
23
|
+
</div>
|
|
24
|
+
|
|
25
|
+
{% if params.mediaHtml and nativeVariant !== "standard" %}
|
|
26
|
+
<div class="{{ componentClassName + '__media'}}">
|
|
27
|
+
{{ params.mediaHtml }}
|
|
28
|
+
</div>
|
|
29
|
+
{% endif %}
|
|
30
|
+
|
|
31
|
+
<div class="{{ componentClassName + '__content'}}">
|
|
32
|
+
{% if params.mediaHtml and nativeVariant == "standard" %}
|
|
22
33
|
<div class="{{ componentClassName + '__media'}}">
|
|
23
34
|
{{ params.mediaHtml }}
|
|
24
35
|
</div>
|
|
25
36
|
{% endif %}
|
|
26
37
|
|
|
27
|
-
|
|
28
|
-
<div class="{{
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
{
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
{% if params.text and nativeVariant !== "right" %}
|
|
44
|
-
<p class="{{ componentClassName + '__text' }}">
|
|
45
|
-
{{- TeaserDot() -}}
|
|
46
|
-
{{- params.text -}}
|
|
47
|
-
</p>
|
|
48
|
-
{% endif %}
|
|
49
|
-
</div>
|
|
50
|
-
</div>
|
|
38
|
+
{% if params.vignette %}
|
|
39
|
+
<div class="ds-teaser__vignette">{{- params.vignette -}}</div>
|
|
40
|
+
{% endif %}
|
|
41
|
+
|
|
42
|
+
<h2 class="{{ componentClassName + '__title'}}">
|
|
43
|
+
{{- params.title -}}
|
|
44
|
+
</h2>
|
|
45
|
+
|
|
46
|
+
{% if params.text and nativeVariant !== "right" %}
|
|
47
|
+
<p class="{{ componentClassName + '__text' }}">
|
|
48
|
+
{{- TeaserDot() -}}
|
|
49
|
+
{{- params.text -}}
|
|
50
|
+
</p>
|
|
51
|
+
{% endif %}
|
|
52
|
+
</div>
|
|
51
53
|
{% endcall %}
|
|
52
54
|
{% endmacro %}
|
|
@@ -6,15 +6,13 @@
|
|
|
6
6
|
overflow: hidden;
|
|
7
7
|
border-bottom: 4px solid $ds-color-static-ad-yellow;
|
|
8
8
|
|
|
9
|
-
.ds-
|
|
10
|
-
@include ds-spacing-layout(
|
|
11
|
-
$ds-sl-teaser-vertical-small $ds-sl-teaser-horizontal 0
|
|
12
|
-
);
|
|
9
|
+
.ds-teaser__media {
|
|
10
|
+
@include ds-spacing-layout($ds-sl-teaser-vertical-medium, margin-bottom);
|
|
13
11
|
}
|
|
14
12
|
|
|
15
|
-
.ds-teaser__media,
|
|
16
13
|
.ds-teaser__content {
|
|
17
|
-
|
|
14
|
+
display: block;
|
|
15
|
+
@include ds-spacing-layout($ds-sl-teaser-vertical-small $ds-sl-teaser-horizontal $ds-sl-teaser-vertical-medium);
|
|
18
16
|
}
|
|
19
17
|
|
|
20
18
|
.ds-teaser__title {
|
|
@@ -28,10 +26,6 @@
|
|
|
28
26
|
clear: both;
|
|
29
27
|
}
|
|
30
28
|
|
|
31
|
-
.ds-teaser__content {
|
|
32
|
-
display: block;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
29
|
&.ds-teaser--native-right,
|
|
36
30
|
&.ds-teaser--native-large {
|
|
37
31
|
.ds-teaser__media {
|
package/package.json
CHANGED