@bonniernews/dn-design-system-web 3.0.0-alpha.23 → 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 CHANGED
@@ -3,6 +3,14 @@
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
+
6
14
  ## 3.0.0-alpha.23 (2023-03-31)
7
15
 
8
16
 
@@ -20,15 +20,15 @@
20
20
  {% endif %}
21
21
 
22
22
  {% if params.caption or params.author %}
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
- })}}
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 %}
@@ -32,7 +32,7 @@ These are copy paste friendly examples to quickliy get started using a component
32
32
  fullWidth: true,
33
33
  caption: "En bildtext",
34
34
  imageType: "Foto",
35
- author: "Paul Hansen",
35
+ author: "Paul Hansen"
36
36
  })}}
37
37
  ```
38
38
 
@@ -30,7 +30,7 @@ These are copy paste friendly examples to quickliy get started using a component
30
30
  imageHtml: exampleArticleTopImageHtml(),
31
31
  caption: "En bildtext",
32
32
  imageType: "Foto",
33
- author: "Beatrice Lundborg",
33
+ author: "Beatrice Lundborg"
34
34
  })}}
35
35
  ```
36
36
 
@@ -28,7 +28,7 @@ These are copy paste friendly examples to quickliy get started using a component
28
28
  {{ ImageCaption({
29
29
  caption: "En bildtext",
30
30
  imageType: "Foto",
31
- author: "Paul Hansen",
31
+ author: "Paul Hansen"
32
32
  })}}
33
33
  ```
34
34
 
@@ -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-label="Videon är {{ params.duration }} lång">
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.23",
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",