@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 =
|
|
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 =
|
|
8
|
+
const bylines = article.querySelectorAll(".ds-byline");
|
|
9
9
|
for (const byline of bylines) {
|
|
10
10
|
byline.addEventListener("click", (e) => {
|
|
11
11
|
openModal(modalEl);
|
package/package.json
CHANGED