@bonniernews/dn-design-system-web 11.0.1 → 11.0.2

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
+ ## [11.0.2](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@11.0.1...@bonniernews/dn-design-system-web@11.0.2) (2024-01-18)
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * **web:** dont stop scrolling on modal init in fallback mode ([#1175](https://github.com/BonnierNews/dn-design-system/issues/1175)) ([c5d7c87](https://github.com/BonnierNews/dn-design-system/commit/c5d7c873292de1b8714c7cabbd945779a2fef0c7))
13
+
7
14
  ## [11.0.1](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@11.0.0...@bonniernews/dn-design-system-web@11.0.1) (2024-01-18)
8
15
 
9
16
 
@@ -20,7 +20,6 @@ function initModal(modalEl) {
20
20
  fallbackDiv.setAttribute("aria-modal", "true");
21
21
  fallbackDiv.innerHTML = modalElInner.innerHTML;
22
22
  modalEl.replaceChild(fallbackDiv, modalElInner);
23
- document.body.classList.add("no-scroll");
24
23
  }
25
24
 
26
25
  modalEl.addEventListener("click", (e) => {
@@ -41,6 +40,7 @@ function openModal(modalEl) {
41
40
  modalElInner.showModal();
42
41
  } else {
43
42
  modalEl.classList.remove("ds-modal--hidden");
43
+ document.body.classList.add("no-scroll");
44
44
  }
45
45
  }
46
46
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bonniernews/dn-design-system-web",
3
- "version": "11.0.1",
3
+ "version": "11.0.2",
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",