@bonniernews/dn-design-system-web 3.0.0-alpha.22 → 3.0.0-alpha.24
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/assets/article-image/article-image.njk +9 -9
- package/components/article-body-image/README.md +1 -1
- package/components/article-top-image/README.md +1 -1
- package/components/factbox/factbox.njk +2 -2
- package/components/image-caption/README.md +1 -1
- package/components/video-caption/video-caption.njk +5 -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
|
+
## 3.0.0-alpha.24 (2023-04-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## 3.0.0-alpha.23 (2023-03-31)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **web:** only fullwidth factbox button in small screen ([#742](https://github.com/BonnierNews/dn-design-system/issues/742)) ([97b7a4d](https://github.com/BonnierNews/dn-design-system/commit/97b7a4dec6731ec38ae67345296338c08da65a00))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
6
23
|
## 3.0.0-alpha.22 (2023-03-30)
|
|
7
24
|
|
|
8
25
|
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
@@ -20,15 +20,15 @@
|
|
|
20
20
|
{% endif %}
|
|
21
21
|
|
|
22
22
|
{% if params.caption or params.author %}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
23
|
+
{% set caption = params.caption if params.caption else "" %}
|
|
24
|
+
{% set author = params.author if params.author else "" %}
|
|
25
|
+
{% set imageType = params.imageType if params.imageType else "" %}
|
|
26
|
+
{{ ImageCaption({
|
|
27
|
+
caption: caption,
|
|
28
|
+
author: author,
|
|
29
|
+
imageType: imageType,
|
|
30
|
+
forcePx: params.forcePx
|
|
31
|
+
})}}
|
|
32
32
|
{% endif %}
|
|
33
33
|
</figure>
|
|
34
34
|
{% endmacro %}
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
iconPosition: 'right',
|
|
58
58
|
iconName: 'expand_more',
|
|
59
59
|
classNames: 'ds-factbox__expand-more',
|
|
60
|
-
fullWidth: true,
|
|
60
|
+
mobile: { fullWidth: true },
|
|
61
61
|
forcePx: params.forcePx,
|
|
62
62
|
condensed: true
|
|
63
63
|
})}}
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
iconPosition: 'right',
|
|
69
69
|
iconName: 'expand_less',
|
|
70
70
|
classNames: 'ds-factbox__expand-less',
|
|
71
|
-
fullWidth: true,
|
|
71
|
+
mobile: { fullWidth: true },
|
|
72
72
|
forcePx: params.forcePx,
|
|
73
73
|
condensed: true
|
|
74
74
|
})}}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
{% from '@bonniernews/dn-design-system-web/njk-helpers/attributes.njk' import getAttributes %}
|
|
2
|
+
{% from '@bonniernews/dn-design-system-web/foundations/a11y/visually-hidden.njk' import VisuallyHidden %}
|
|
2
3
|
|
|
3
4
|
{% macro VideoCaption(params) %}
|
|
4
5
|
{%- set componentClassName = "ds-video-caption" %}
|
|
@@ -13,9 +14,12 @@
|
|
|
13
14
|
{%- set classes = componentClassName + " " + additionalClasses | join(" ") %}
|
|
14
15
|
<figcaption class="{{ classes }}" {{- attributes | safe }}>
|
|
15
16
|
{%- if params.duration -%}
|
|
16
|
-
<span class="{{ componentClassName + '__duration'}}" aria-
|
|
17
|
+
<span class="{{ componentClassName + '__duration'}}" aria-hidden="true">
|
|
17
18
|
{{- params.duration -}}
|
|
18
19
|
</span>
|
|
20
|
+
{{ VisuallyHidden({
|
|
21
|
+
text: "Videon är " + params.duration + " lång."
|
|
22
|
+
})}}
|
|
19
23
|
{%- endif %}
|
|
20
24
|
{% if params.caption -%}
|
|
21
25
|
<span class="{{ componentClassName + '__text'}}">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bonniernews/dn-design-system-web",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.24",
|
|
4
4
|
"description": "DN design system for web.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"homepage": "https://github.com/BonnierNews/dn-design-system/tree/main/web/src#readme",
|