@bonniernews/dn-design-system-web 2.1.0-alpha.12 → 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 CHANGED
@@ -3,6 +3,15 @@
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
+
6
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)
7
16
 
8
17
  **Note:** Version bump only for package @bonniernews/dn-design-system-web
@@ -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--factbox)
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
  }
@@ -30,4 +30,7 @@
30
30
  &--economy .ds-quote__border {
31
31
  color: $ds-color-static-economy;
32
32
  }
33
+ &--sthlm .ds-quote__border {
34
+ color: $ds-color-static-sthlm;
35
+ }
33
36
  }
@@ -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(gap-vertical-static-medium) auto
7
- ds-spacing-layout(gap-vertical-static-large);
8
- background-color: $ds-color-border-primary;
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bonniernews/dn-design-system-web",
3
- "version": "2.1.0-alpha.12",
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",