@bonniernews/dn-design-system-web 15.2.13 → 15.2.14

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
@@ -4,6 +4,13 @@ All changes to @bonniernews/dn-design-system-web will be documented in this file
4
4
 
5
5
 
6
6
 
7
+ ## [15.2.14](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@15.2.13...@bonniernews/dn-design-system-web@15.2.14) (2024-07-04)
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * **web:** hide photo bylines for screen readers ([#1325](https://github.com/BonnierNews/dn-design-system/issues/1325)) ([fe3254b](https://github.com/BonnierNews/dn-design-system/commit/fe3254b955a0f847c3d3e4bc2fb190f98c4e6f3d))
13
+
7
14
  ## [15.2.13](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@15.2.12...@bonniernews/dn-design-system-web@15.2.13) (2024-07-04)
8
15
 
9
16
 
@@ -10,9 +10,9 @@
10
10
  params.classNames if params.classNames
11
11
  ] | join(" ") %}
12
12
 
13
- <figcaption class="{{ classes }}" {{- attributes | safe }}>
13
+ <figcaption class="{{ classes }}" {{- attributes | safe }} aria-hidden="true">
14
14
  {% if params.caption %}
15
- <span aria-hidden="true">{{ params.caption | safe }}</span>
15
+ <span>{{ params.caption | safe }}</span>
16
16
  {% endif %}
17
17
  {% if params.author %}
18
18
  {% set authorText = ((params.imageType | capitalize) + ": " + params.author) if params.imageType else params.author %}
@@ -12,7 +12,7 @@
12
12
  {{ params.imageHtml | safe }}
13
13
 
14
14
  {% if params.byline %}
15
- <figcaption class={{ componentClassName + "__byline" }}>{{ params.byline }}</figcaption>
15
+ <figcaption class={{ componentClassName + "__byline" }} aria-hidden="true">{{ params.byline }}</figcaption>
16
16
  {% endif %}
17
17
  </figure>
18
18
  {% endmacro %}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bonniernews/dn-design-system-web",
3
- "version": "15.2.13",
3
+ "version": "15.2.14",
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",