@bonniernews/dn-design-system-web 4.7.0 → 4.7.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 +18 -0
- package/README.md +2 -0
- package/components/byline/byline.njk +4 -4
- 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
|
+
## 4.7.2 (2023-09-14)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **web:** critical fix for bylines with followbutton and link ([#1003](https://github.com/BonnierNews/dn-design-system/issues/1003)) ([1681731](https://github.com/BonnierNews/dn-design-system/commit/1681731a1688a777e491422b166f3ce13ab6efd9))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## 4.7.1 (2023-09-14)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* **foundations:** update readme to trigger package release ([#1006](https://github.com/BonnierNews/dn-design-system/issues/1006)) ([fa8a99e](https://github.com/BonnierNews/dn-design-system/commit/fa8a99e3dd054a0e0e5263d9cc1ee42faf23795e))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
6
24
|
## 4.7.0 (2023-09-13)
|
|
7
25
|
|
|
8
26
|
|
package/README.md
CHANGED
|
@@ -10,4 +10,6 @@ Storybook latest: [https://designsystem-latest.dn.se/](https://designsystem-late
|
|
|
10
10
|
|
|
11
11
|
Github: [https://github.com/BonnierNews/dn-design-system/tree/main/web/src](https://github.com/BonnierNews/dn-design-system/tree/main/web/src)
|
|
12
12
|
|
|
13
|
+
Changelog: [https://github.com/BonnierNews/dn-design-system/blob/main/web/src/CHANGELOG.md](https://github.com/BonnierNews/dn-design-system/blob/main/web/src/CHANGELOG.md)
|
|
14
|
+
|
|
13
15
|
For specific instructions see each component or helper readme
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
{% call BylineInner(params, componentClassName) %}
|
|
9
9
|
<div class="{{ componentClassName + '__inner'}}">
|
|
10
10
|
{% set componentClassName = componentClassName %}
|
|
11
|
-
{% call BylineContent(params, componentClassName ) %}
|
|
11
|
+
{% call BylineContent(params, componentClassName, useOuterAnchorElement) %}
|
|
12
12
|
{% if params.bylineImage %}
|
|
13
13
|
<span class="{{ componentClassName + '__image'}}">{{- params.bylineImage | safe -}}</span>
|
|
14
14
|
{% endif %}
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
{% endmacro %}
|
|
42
42
|
|
|
43
43
|
{# Internal helper macro - not intended for use outside of this file #}
|
|
44
|
-
{% macro BylineContent(params, componentClassName) %}
|
|
44
|
+
{% macro BylineContent(params, componentClassName, useOuterAnchorElement) %}
|
|
45
45
|
{% if params.variant == 'link' %}
|
|
46
46
|
{% set subtitle = params.role %}
|
|
47
47
|
{% elif params.variant == 'follow' %}
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
{% set subtitle = false %}
|
|
51
51
|
{% endif %}
|
|
52
52
|
|
|
53
|
-
|
|
54
|
-
{% if useOuterAnchorElement and params.authorPageUrl %}
|
|
53
|
+
{# This inner link can exist in combination with a button. It's been decided that it should only be used for authorPageUrls, not for email #}
|
|
54
|
+
{% if not useOuterAnchorElement and params.authorPageUrl %}
|
|
55
55
|
<a href="{{params.authorPageUrl}}" aria-label="Läs mer från: {{ params.authorName }}" class="{{ componentClassName + '__content-wrapper'}}">
|
|
56
56
|
{{ caller() if caller }}
|
|
57
57
|
</a>
|
package/package.json
CHANGED