@bonniernews/dn-design-system-web 2.1.0-alpha.11 → 2.1.0-alpha.13
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 +17 -0
- package/components/factbox/README.md +2 -1
- package/components/factbox/factbox.scss +7 -0
- package/components/quote/quote.scss +3 -0
- package/components/thematic-break/thematic-break.scss +16 -4
- package/foundations/variables/colorsCssVariables.scss +1 -0
- package/foundations/variables/colorsDnDarkTokens.scss +2 -1
- package/foundations/variables/colorsDnLightTokens.scss +1 -0
- package/package.json +1 -1
- package/tokens/colors-css-variables.json +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,23 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.1.0-alpha.13](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@2.1.0-alpha.12...@bonniernews/dn-design-system-web@2.1.0-alpha.13) (2023-02-23)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **web:** sthlm variants for quote/factbox and refactor thematic break ([#694](https://github.com/BonnierNews/dn-design-system/issues/694)) ([3122e04](https://github.com/BonnierNews/dn-design-system/commit/3122e0474e5c40176234e6efbf17447d4c85aa6f))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## [2.1.0-alpha.12](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@2.1.0-alpha.11...@bonniernews/dn-design-system-web@2.1.0-alpha.12) (2023-02-22)
|
|
16
|
+
|
|
17
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
6
23
|
## 2.1.0-alpha.11 (2023-02-22)
|
|
7
24
|
|
|
8
25
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/factbox](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/factbox)
|
|
2
|
-
- Storybook: [Factbox > Web](https://designsystem.dn.se/?path=/story/components-web-factbox-web--
|
|
2
|
+
- Storybook (PROD): [Factbox > Web](https://designsystem.dn.se/?path=/story/components-app-web-article-components-factbox-web--standard)
|
|
3
|
+
- Storybook (LATEST): [Factbox > Web](https://designsystem-latest.dn.se/?path=/story/components-app-web-article-components-factbox-web--standard)
|
|
3
4
|
|
|
4
5
|
----
|
|
5
6
|
|
|
@@ -8,6 +8,7 @@ $ds-factbox__max-height: 500px - ($ds-factbox__padding * 2);
|
|
|
8
8
|
|
|
9
9
|
.ds-factbox {
|
|
10
10
|
background-color: $ds-color-surface-background;
|
|
11
|
+
box-sizing: border-box;
|
|
11
12
|
padding: $ds-factbox__padding;
|
|
12
13
|
padding-left: $ds-factbox__padding - ds-metrics-border-width(x2);
|
|
13
14
|
padding-top: $ds-factbox__padding - ds-metrics-border-width(x1);
|
|
@@ -145,4 +146,10 @@ $ds-factbox__max-height: 500px - ($ds-factbox__padding * 2);
|
|
|
145
146
|
color: $ds-color-static-economy;
|
|
146
147
|
}
|
|
147
148
|
}
|
|
149
|
+
&--sthlm {
|
|
150
|
+
border-left-color: $ds-color-static-sthlm;
|
|
151
|
+
.ds-factbox__vignette {
|
|
152
|
+
color: $ds-color-static-sthlm;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
148
155
|
}
|
|
@@ -1,10 +1,22 @@
|
|
|
1
1
|
@use "../../foundations/helpers/forward.helpers.scss" as *;
|
|
2
2
|
|
|
3
3
|
.ds-thematic-break {
|
|
4
|
-
width: 128px;
|
|
5
4
|
height: 4px;
|
|
6
|
-
margin: ds-spacing-layout(
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
margin: ds-spacing-layout(
|
|
6
|
+
gap-vertical-static-medium 0 gap-vertical-static-large
|
|
7
|
+
);
|
|
9
8
|
border: none;
|
|
9
|
+
position: relative;
|
|
10
|
+
width: 100%;
|
|
11
|
+
|
|
12
|
+
&::after {
|
|
13
|
+
content: "";
|
|
14
|
+
background-color: $ds-color-border-primary;
|
|
15
|
+
height: 100%;
|
|
16
|
+
width: 128px;
|
|
17
|
+
position: absolute;
|
|
18
|
+
top: 0;
|
|
19
|
+
left: 50%;
|
|
20
|
+
transform: translateX(-50%);
|
|
21
|
+
}
|
|
10
22
|
}
|
|
@@ -59,6 +59,7 @@ $ds-color-static-kultur: var(--ds-color-static-kultur);
|
|
|
59
59
|
$ds-color-static-economy: var(--ds-color-static-economy);
|
|
60
60
|
$ds-color-static-sport: var(--ds-color-static-sport);
|
|
61
61
|
$ds-color-static-neutral-200: var(--ds-color-static-neutral-200);
|
|
62
|
+
$ds-color-static-sthlm: var(--ds-color-static-sthlm);
|
|
62
63
|
$ds-color-gradient-content-fade-left: var(--ds-color-gradient-content-fade-left);
|
|
63
64
|
$ds-color-gradient-content-fade-right: var(--ds-color-gradient-content-fade-right);
|
|
64
65
|
$ds-color-gradient-content-fade-up: var(--ds-color-gradient-content-fade-up);
|
|
@@ -47,10 +47,10 @@ $ds-hex-dark-border-focus-02: #ffffff;
|
|
|
47
47
|
$ds-hex-dark-border-focus-03: #EF7171;
|
|
48
48
|
$ds-hex-dark-border-focus-04: #3A8352;
|
|
49
49
|
$ds-hex-dark-background-primary: #141414;
|
|
50
|
-
$ds-hex-dark-gradient-content-fade: linear-gradient(90deg, #14141400 0%, #141414 100%);
|
|
51
50
|
$ds-hex-dark-gradient-content-fade-left: linear-gradient(90deg, #14141400 0%, #141414 100%);
|
|
52
51
|
$ds-hex-dark-gradient-content-fade-right: linear-gradient(-90deg, #14141400 0%, #141414 100%);
|
|
53
52
|
$ds-hex-dark-gradient-content-fade-up: linear-gradient(180deg, #14141400 0%, #141414 100%);
|
|
53
|
+
$ds-hex-dark-gradient-content-fade-up-down: linear-gradient(0deg, #14141400 0%, #141414 100%);
|
|
54
54
|
$ds-hex-dark-gradient-content-fade-down: linear-gradient(0deg, #14141400 0%, #141414 100%);
|
|
55
55
|
$ds-hex-dark-static-red-200: #FAD4D4;
|
|
56
56
|
$ds-hex-dark-static-black: #141414;
|
|
@@ -64,3 +64,4 @@ $ds-hex-dark-static-kultur: #568CBB;
|
|
|
64
64
|
$ds-hex-dark-static-economy: #60BCA1;
|
|
65
65
|
$ds-hex-dark-static-sport: #F58D2D;
|
|
66
66
|
$ds-hex-dark-static-neutral-200: #E0E0E0;
|
|
67
|
+
$ds-hex-dark-static-sthlm: #FF589B;
|
|
@@ -59,6 +59,7 @@ $ds-hex-static-kultur: #568CBB;
|
|
|
59
59
|
$ds-hex-static-economy: #60BCA1;
|
|
60
60
|
$ds-hex-static-sport: #F58D2D;
|
|
61
61
|
$ds-hex-static-neutral-200: #E0E0E0;
|
|
62
|
+
$ds-hex-static-sthlm: #FF589B;
|
|
62
63
|
$ds-hex-gradient-content-fade-left: linear-gradient(90deg, #ffffff00 0%, #ffffff 100%);
|
|
63
64
|
$ds-hex-gradient-content-fade-right: linear-gradient(-90deg, #ffffff00 0%, #ffffff 100%);
|
|
64
65
|
$ds-hex-gradient-content-fade-up: linear-gradient(180deg, #ffffff00 0%, #ffffff 100%);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bonniernews/dn-design-system-web",
|
|
3
|
-
"version": "2.1.0-alpha.
|
|
3
|
+
"version": "2.1.0-alpha.13",
|
|
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",
|
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
"static-economy": "var(--ds-color-static-economy)",
|
|
61
61
|
"static-sport": "var(--ds-color-static-sport)",
|
|
62
62
|
"static-neutral-200": "var(--ds-color-static-neutral-200)",
|
|
63
|
+
"static-sthlm": "var(--ds-color-static-sthlm)",
|
|
63
64
|
"gradient-content-fade-left": "var(--ds-color-gradient-content-fade-left)",
|
|
64
65
|
"gradient-content-fade-right": "var(--ds-color-gradient-content-fade-right)",
|
|
65
66
|
"gradient-content-fade-up": "var(--ds-color-gradient-content-fade-up)",
|