@bonniernews/dn-design-system-web 9.1.1 → 9.1.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 +7 -0
- package/components/modal/modal.scss +14 -1
- package/foundations/colors.scss +0 -1
- package/package.json +1 -1
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
|
+
## [9.1.2](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@9.1.1...@bonniernews/dn-design-system-web@9.1.2) (2024-01-12)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* **web:** style modal backdrop in after element instead of backdrop ([#1164](https://github.com/BonnierNews/dn-design-system/issues/1164)) ([e031696](https://github.com/BonnierNews/dn-design-system/commit/e031696fe8974777f4260f54d2fb73046eec6537))
|
|
13
|
+
|
|
7
14
|
## [9.1.1](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@9.1.0...@bonniernews/dn-design-system-web@9.1.1) (2024-01-09)
|
|
8
15
|
|
|
9
16
|
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
right: 0;
|
|
17
17
|
left: 0;
|
|
18
18
|
z-index: 999;
|
|
19
|
-
background-color: $ds-color-surface-overlay;
|
|
20
19
|
|
|
21
20
|
@include ds-mq-only-breakpoint(mobile) {
|
|
22
21
|
align-items: flex-end;
|
|
@@ -57,13 +56,27 @@
|
|
|
57
56
|
}
|
|
58
57
|
|
|
59
58
|
&::backdrop {
|
|
59
|
+
background-color: transparent;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&::after {
|
|
63
|
+
content: "";
|
|
64
|
+
display: block;
|
|
65
|
+
position: fixed;
|
|
66
|
+
top: 0;
|
|
67
|
+
left: 0;
|
|
68
|
+
width: 100vw;
|
|
69
|
+
height: 100vh;
|
|
60
70
|
background-color: $ds-color-surface-overlay;
|
|
71
|
+
z-index: 10;
|
|
61
72
|
}
|
|
62
73
|
}
|
|
63
74
|
|
|
64
75
|
.ds-modal__content {
|
|
65
76
|
padding: ds-spacing($ds-s-400 $ds-s-300 $ds-s-300);
|
|
66
77
|
background-color: $ds-color-surface-background;
|
|
78
|
+
position: relative;
|
|
79
|
+
z-index: 15;
|
|
67
80
|
|
|
68
81
|
.ds-icon-btn.ds-modal__close {
|
|
69
82
|
position: absolute;
|
package/foundations/colors.scss
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
@use "./helpers/colors.scss" as *;
|
|
6
6
|
|
|
7
7
|
html,
|
|
8
|
-
::backdrop, //backdrop can't handle variables in html element. It needs to be defined here
|
|
9
8
|
.ds-light {
|
|
10
9
|
@each $name, $value in meta.module-variables("colorsDnLightTokens") {
|
|
11
10
|
--ds-color-#{string.slice($name, 8)}: #{$value};
|
package/package.json
CHANGED