@bonniernews/dn-design-system-web 8.1.1 → 8.2.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 +9 -0
- package/assets/teaser/teaser.scss +11 -0
- package/components/teaser-large/README.md +1 -0
- package/components/teaser-large/teaser-large.njk +3 -0
- package/components/teaser-standard/README.md +1 -0
- package/components/teaser-standard/teaser-standard.njk +3 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,15 @@
|
|
|
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
|
+
## 8.2.0 (2023-11-14)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **web:** add timestamps to TeaserStandard and TeaserLarge ([#1087](https://github.com/BonnierNews/dn-design-system/issues/1087)) ([0e90215](https://github.com/BonnierNews/dn-design-system/commit/0e90215a5e12f1be299e8eabb6d9a19bcb42c374))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
6
15
|
## 8.1.1 (2023-11-14)
|
|
7
16
|
|
|
8
17
|
|
|
@@ -68,6 +68,17 @@ $grade-size: ds-px-to-rem(34px);
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
+
.ds-teaser__publication-time {
|
|
72
|
+
display: block;
|
|
73
|
+
@include ds-typography($ds-typography-functional-meta02regular);
|
|
74
|
+
color: $ds-color-text-primary-02;
|
|
75
|
+
margin-top: ds-spacing($ds-s-050);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.ds-teaser__text + .ds-teaser__publication-time {
|
|
79
|
+
margin-top: ds-spacing($ds-s-075);
|
|
80
|
+
}
|
|
81
|
+
|
|
71
82
|
.ds-icon.ds-icon--grade {
|
|
72
83
|
color: $ds-color-icon-primary;
|
|
73
84
|
border-radius: 50%;
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
|isLargeHeadline | bool | no | true, false | false | If the headline should be large. Only has an effect if `isItalicHeadline` is true. |
|
|
27
27
|
|isFlashingDot | bool | no | true, false | false | If there should be a flashing ball before the text |
|
|
28
28
|
|isLocked | bool | no | true, false | false | If the paywall indicator should be shown. It is only shown if the teaser has an image. |
|
|
29
|
+
|publicationTime | string | no | | null | Publication time text. |
|
|
29
30
|
|attributes | Object | no | | | Ex. { target: "_blank", "data-test": "lorem ipsum" } |
|
|
30
31
|
|classNames | String | no | | | Ex. "my-special-class" |
|
|
31
32
|
|~forcePx~ | | | | | Not supported |
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
|isItalicHeadline | bool | no | true, false | false | If the headline should be italic |
|
|
25
25
|
|isFlashingDot | bool | no | true, false | false | If there should be a flashing ball before the text |
|
|
26
26
|
|isLocked | bool | no | true, false | false | If the paywall indicator should be shown. It is only shown if the teaser has an image. |
|
|
27
|
+
|publicationTime | string | no | | null | Publication time text. |
|
|
27
28
|
|attributes | Object | no | | | Ex. { target: "_blank", "data-test": "lorem ipsum" } |
|
|
28
29
|
|classNames | String | no | | | Ex. "my-special-class" |
|
|
29
30
|
|~forcePx~ | | | | | Not supported |
|
package/package.json
CHANGED