@bonniernews/dn-design-system-web 32.7.1 → 32.7.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,21 @@ All changes to @bonniernews/dn-design-system-web will be documented in this file
4
4
 
5
5
 
6
6
 
7
+ ## [32.7.3](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@32.7.2...@bonniernews/dn-design-system-web@32.7.3) (2025-06-19)
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * **web:** correct close target for modal ([#1785](https://github.com/BonnierNews/dn-design-system/issues/1785)) ([403f5e6](https://github.com/BonnierNews/dn-design-system/commit/403f5e6ff251d321696e2f40f7f1b809a712aead))
13
+ * **web:** update test renderer to allow a wrapper class on component and use in byline ([#1784](https://github.com/BonnierNews/dn-design-system/issues/1784)) ([2cd1be0](https://github.com/BonnierNews/dn-design-system/commit/2cd1be08860c44dd3a2b4a738bf1293c80bd9bac))
14
+
15
+ ## [32.7.2](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@32.7.1...@bonniernews/dn-design-system-web@32.7.2) (2025-06-19)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * **web:** handle multiple fallback modals ([#1783](https://github.com/BonnierNews/dn-design-system/issues/1783)) ([316beaa](https://github.com/BonnierNews/dn-design-system/commit/316beaa90e37b6e3bbc2caa4af8d148542715307))
21
+
7
22
  ## [32.7.1](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@32.7.0...@bonniernews/dn-design-system-web@32.7.1) (2025-06-13)
8
23
 
9
24
 
@@ -9,7 +9,7 @@ function initModal(modalEl) {
9
9
  let modalWrapper = modalEl.querySelector(".ds-modal__inner");
10
10
  if (!isDialogSupported) {
11
11
  modalWrapper = modalEl;
12
- const modalElInner = document.querySelector(".ds-modal__inner");
12
+ const modalElInner = modalEl.querySelector(".ds-modal__inner");
13
13
  const modalAttributes = Array.from(modalElInner.attributes);
14
14
  const fallbackDiv = document.createElement("div");
15
15
  modalEl.classList.add("ds-modal--hidden", "ds-modal--fallback");
@@ -23,7 +23,7 @@ function initModal(modalEl) {
23
23
  }
24
24
 
25
25
  modalEl.addEventListener("click", (e) => {
26
- if (e.target === modalWrapper) closeModal(modalEl, isDialogSupported);
26
+ if (e.target === modalEl.querySelector(".ds-modal__inner")) closeModal(modalEl, isDialogSupported);
27
27
  });
28
28
 
29
29
  const closeButtons = Array.from(modalEl.getElementsByClassName("ds-modal__close"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bonniernews/dn-design-system-web",
3
- "version": "32.7.1",
3
+ "version": "32.7.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",