@bonniernews/dn-design-system-web 31.2.1 → 31.2.3

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,20 @@ All changes to @bonniernews/dn-design-system-web will be documented in this file
4
4
 
5
5
 
6
6
 
7
+ ## [31.2.3](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@31.2.2...@bonniernews/dn-design-system-web@31.2.3) (2025-03-26)
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * **web:** byline interaction to work with continous scroll ([#1679](https://github.com/BonnierNews/dn-design-system/issues/1679)) ([7e1277b](https://github.com/BonnierNews/dn-design-system/commit/7e1277b4663f6a399f610e4ab8999c5650ed1e1c))
13
+
14
+ ## [31.2.2](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@31.2.1...@bonniernews/dn-design-system-web@31.2.2) (2025-03-26)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **web:** byline remove line break ([586bee1](https://github.com/BonnierNews/dn-design-system/commit/586bee11c4ecf5f87e2bea395dea450b14ab4347))
20
+
7
21
  ## [31.2.1](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@31.2.0...@bonniernews/dn-design-system-web@31.2.1) (2025-03-26)
8
22
 
9
23
 
@@ -1,11 +1,11 @@
1
1
  import { initModal, openModal } from '@bonniernews/dn-design-system-web/components/modal/modal.js'
2
2
 
3
- export function initModalByline() {
4
- const modalEl = document.querySelector(".ds-modal--byline");
3
+ export function initModalByline(article) {
4
+ const modalEl = article.querySelector(".ds-modal--byline");
5
5
  if (!modalEl) return;
6
6
  initModal(modalEl);
7
7
 
8
- const bylines = document.querySelectorAll(".ds-byline");
8
+ const bylines = article.querySelectorAll(".ds-byline");
9
9
  for (const byline of bylines) {
10
10
  byline.addEventListener("click", (e) => {
11
11
  openModal(modalEl);
@@ -28,9 +28,7 @@
28
28
  data-link-category="article author"
29
29
  data-id="{{ byline.authorId }}"
30
30
  data-index="1"
31
- data-label="{{ byline.name }}">
32
- {{ byline.name }}
33
- </a>
31
+ data-label="{{ byline.name }}">{{ byline.name }}</a>
34
32
  </div>
35
33
  </div>
36
34
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bonniernews/dn-design-system-web",
3
- "version": "31.2.1",
3
+ "version": "31.2.3",
4
4
  "description": "DN design system for web.",
5
5
  "type": "module",
6
6
  "homepage": "https://github.com/BonnierNews/dn-design-system/tree/main/web/src#readme",