@bonniernews/dn-design-system-web 11.0.0 → 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,20 @@ 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
+
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)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **web:** fix border radius in safari ([#1172](https://github.com/BonnierNews/dn-design-system/issues/1172)) ([a39daf4](https://github.com/BonnierNews/dn-design-system/commit/a39daf4a0ecc05f387ed82919df61f13c2b1a3f3))
20
+
7
21
  ## [11.0.0](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@10.0.3...@bonniernews/dn-design-system-web@11.0.0) (2024-01-18)
8
22
 
9
23
 
@@ -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
 
@@ -35,16 +35,6 @@ body.no-scroll {
35
35
  .ds-modal__inner {
36
36
  position: relative;
37
37
  }
38
-
39
- .ds-modal__content {
40
- @include ds-mq-only-breakpoint(mobile) {
41
- border-radius: 16px 16px 0 0;
42
- }
43
-
44
- @include ds-mq-smallest-breakpoint(tablet) {
45
- border-radius: ds-border-radius(x1);
46
- }
47
- }
48
38
  }
49
39
 
50
40
  .ds-modal__inner {
@@ -54,11 +44,6 @@ body.no-scroll {
54
44
 
55
45
  @include ds-mq-only-breakpoint(mobile) {
56
46
  margin-bottom: 0;
57
- border-radius: 16px 16px 0 0;
58
- }
59
-
60
- @include ds-mq-smallest-breakpoint(tablet) {
61
- border-radius: ds-border-radius(x1);
62
47
  }
63
48
 
64
49
  &::backdrop {
@@ -85,10 +70,12 @@ body.no-scroll {
85
70
 
86
71
  @include ds-mq-only-breakpoint(mobile) {
87
72
  padding: ds-spacing($ds-s-400 $ds-s-150 $ds-s-150);
73
+ border-radius: 16px 16px 0 0;
88
74
  }
89
75
 
90
76
  @include ds-mq-smallest-breakpoint(tablet) {
91
77
  padding: ds-spacing($ds-s-400 $ds-s-300 $ds-s-300);
78
+ border-radius: ds-border-radius(x1);
92
79
  }
93
80
 
94
81
  .ds-icon-btn.ds-modal__close {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bonniernews/dn-design-system-web",
3
- "version": "11.0.0",
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",