@bonniernews/dn-design-system-web 4.1.1 → 4.1.2
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
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
|
+
## 4.1.2 (2023-09-06)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **web:** add classes to teaserListTimeline ([#983](https://github.com/BonnierNews/dn-design-system/issues/983)) ([39f8d65](https://github.com/BonnierNews/dn-design-system/commit/39f8d6542d5798939dea4cba6d1d630066a02815))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
6
15
|
## 4.1.1 (2023-09-06)
|
|
7
16
|
|
|
8
17
|
|
|
@@ -40,6 +40,8 @@
|
|
|
40
40
|
href: params.listLink.url,
|
|
41
41
|
variant: 'secondaryFilled',
|
|
42
42
|
fullWidth: true,
|
|
43
|
+
classNames: params.listLink.classNames,
|
|
44
|
+
attributes: params.listLink.attributes,
|
|
43
45
|
forcePx: false
|
|
44
46
|
})}}
|
|
45
47
|
</div>
|
|
@@ -49,8 +51,13 @@
|
|
|
49
51
|
|
|
50
52
|
{% macro TeaserListTimelineItem(teaser) %}
|
|
51
53
|
{% set attributes = getAttributes(teaser.attributes) %}
|
|
54
|
+
{% set additionalClasses = [] %}
|
|
55
|
+
{% if teaser.classNames %}
|
|
56
|
+
{% set additionalClasses = (additionalClasses.push(teaser.classNames), additionalClasses) %}
|
|
57
|
+
{% endif%}
|
|
58
|
+
{% set classes = "ds-teaser-list-timeline__item" + " " + additionalClasses | join(" ") %}
|
|
52
59
|
|
|
53
|
-
<a href="{{teaser.targetLink}}" class="
|
|
60
|
+
<a href="{{teaser.targetLink}}" class="{{ classes }}" {{- attributes | safe }}>
|
|
54
61
|
<span class="ds-teaser-list-timeline__item-dot"></span>
|
|
55
62
|
<h3 class="ds-teaser-list-timeline__item-title">{{ teaser.highlight }} {{ teaser.title }}</h3>
|
|
56
63
|
{% if teaser.publicationTime or teaser.sectionName %}
|
package/package.json
CHANGED