@bonniernews/dn-design-system-web 11.4.0-beta.2 → 11.4.0-beta.4

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,41 @@ All changes to @bonniernews/dn-design-system-web will be documented in this file
4
4
 
5
5
 
6
6
 
7
+ ## [11.4.0-beta.4](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@11.4.0-beta.3...@bonniernews/dn-design-system-web@11.4.0-beta.4) (2024-02-19)
8
+
9
+ ## [11.4.0-beta.3](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@11.3.3...@bonniernews/dn-design-system-web@11.4.0-beta.3) (2024-02-19)
10
+
11
+
12
+ ### Features
13
+
14
+ * **core:** handle new token types ([b784d87](https://github.com/BonnierNews/dn-design-system/commit/b784d87892a7da7bb5d6cf6696110a349ffe14d8))
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **app:** calculate lineHeigth for all components ([#1197](https://github.com/BonnierNews/dn-design-system/issues/1197)) ([0d3f059](https://github.com/BonnierNews/dn-design-system/commit/0d3f05989033e7c0a66426e5f19a1e82b6abdd07))
20
+
21
+
22
+ ### Maintenance
23
+
24
+ * **web:** released version v11.4.0-beta.0 ([975ab0f](https://github.com/BonnierNews/dn-design-system/commit/975ab0f6544666161b265389ad56d0b488c47b09))
25
+ * **web:** released version v11.4.0-beta.1 ([c3af807](https://github.com/BonnierNews/dn-design-system/commit/c3af8070223f5abf6fe995daeb3466936f59507c))
26
+ * **web:** released version v11.4.0-beta.2 ([e5c1885](https://github.com/BonnierNews/dn-design-system/commit/e5c1885e0213a2fd5d4667f373b9137250ff0bc9))
27
+
28
+ ## [11.3.3](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@11.3.2...@bonniernews/dn-design-system-web@11.3.3) (2024-02-15)
29
+
30
+
31
+ ### Bug Fixes
32
+
33
+ * **web:** text button as link ([#1196](https://github.com/BonnierNews/dn-design-system/issues/1196)) ([49b252a](https://github.com/BonnierNews/dn-design-system/commit/49b252ab56a565700ada715e399ab11a4a2e90fe))
34
+
35
+ ## [11.3.2](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@11.3.1...@bonniernews/dn-design-system-web@11.3.2) (2024-02-15)
36
+
37
+
38
+ ### Bug Fixes
39
+
40
+ * **web:** smaller standard teaser image maxwidth for podd variant ([#1195](https://github.com/BonnierNews/dn-design-system/issues/1195)) ([4a855b2](https://github.com/BonnierNews/dn-design-system/commit/4a855b23b5964223d8414b617b8289c3efc73291))
41
+
7
42
  ## [11.4.0-beta.2](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@11.4.0-beta.1...@bonniernews/dn-design-system-web@11.4.0-beta.2) (2024-02-14)
8
43
 
9
44
  ## [11.4.0-beta.1](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@11.4.0-beta.0...@bonniernews/dn-design-system-web@11.4.0-beta.1) (2024-02-13)
@@ -7,7 +7,7 @@ $ds-badge__min-size: 8px;
7
7
  box-sizing: content-box;
8
8
 
9
9
  .ds-badge__inner {
10
- @include ds-typography($component: $ds-typography-functional-meta02semibold, $lineHeight: 0);
10
+ @include ds-typography($ds-typography-functional-meta02semibold, $lineHeight: 0);
11
11
  color: $ds-color-static-white;
12
12
  background-color: $ds-color-component-brand;
13
13
  border: $ds-color-border-secondary ds-metrics-border-width(x2) solid;
@@ -19,7 +19,7 @@ $ds-badge__min-size: 8px;
19
19
  min-width: ds-px-to-rem($ds-badge__min-size);
20
20
  padding: ds-spacing($ds-s-025, rem);
21
21
  @at-root .ds-force-px#{&} {
22
- @include ds-typography($component: $ds-typography-functional-meta02semibold, $forcePx: true, $lineHeight: 0);
22
+ @include ds-typography($ds-typography-functional-meta02semibold, $forcePx: true, $lineHeight: 0);
23
23
  min-height: $ds-badge__min-size;
24
24
  min-width: $ds-badge__min-size;
25
25
  padding: ds-spacing($ds-s-025);
@@ -9,10 +9,10 @@
9
9
  position: absolute;
10
10
  bottom: 0;
11
11
  right: 0;
12
- padding: ds-spacing($ds-s-025 $ds-s-050);
12
+ padding: ds-spacing(0 $ds-s-025);
13
13
  margin-left: ds-spacing($ds-s-050);
14
14
 
15
- @include ds-typography($ds-typography-functional-meta01regular);
15
+ @include ds-typography($ds-typography-functionalmeta01, $lineHeight: $ds-lineheight-l);
16
16
  color: $ds-color-static-white;
17
17
 
18
18
  background-color: $ds-color-static-transparent-black;
@@ -71,7 +71,7 @@
71
71
 
72
72
  .ds-teaser__media {
73
73
  .ds-teaser-image__byline {
74
- @include ds-typography($ds-typography-functional-meta01regular, true);
74
+ @include ds-typography($ds-typography-functionalmeta01, $forcePx: true, $lineHeight: $ds-lineheight-l);
75
75
  }
76
76
 
77
77
  @include ds-mq-largest-breakpoint(mobile) {
@@ -45,7 +45,7 @@
45
45
  float: right;
46
46
 
47
47
  .ds-teaser-image__byline {
48
- @include ds-typography($ds-typography-functional-meta01regular, true);
48
+ @include ds-typography($ds-typography-functionalmeta01, $forcePx: true, $lineHeight: $ds-lineheight-l);
49
49
  }
50
50
 
51
51
  @include ds-mq-only-breakpoint(mobile) {
@@ -71,4 +71,18 @@
71
71
  max-width: 100%;
72
72
  }
73
73
  }
74
+
75
+ &.ds-teaser--podcast {
76
+ .ds-teaser__media {
77
+ @include ds-mq-only-breakpoint(mobile) {
78
+ min-width: 80px;
79
+ max-width: 80px;
80
+ }
81
+
82
+ @include ds-mq-smallest-breakpoint(tablet) {
83
+ min-width: 122px;
84
+ max-width: 122px;
85
+ }
86
+ }
87
+ }
74
88
  }
@@ -44,6 +44,7 @@ $ds-text-btn__underline-offset: 2px;
44
44
  border-radius: ds-border-radius(x1);
45
45
  padding: 0;
46
46
  position: relative;
47
+ text-decoration: none;
47
48
 
48
49
  &::before {
49
50
  content: "";
@@ -47,16 +47,16 @@ $dsSerifWeights: (
47
47
 
48
48
  // Serif variation changes, text 18px, headline 26px, display 34px. As fallback we will always use headline
49
49
 
50
- @mixin ds-typography($component, $forcePx: false, $fontWeight: null, $letterSpacing: null, $lineHeight: null) {
50
+ @mixin ds-typography($token, $forcePx: false, $fontWeight: null, $letterSpacing: null, $lineHeight: null) {
51
51
  // making sure override values have matching keys in typography object
52
52
  $addons: (
53
53
  "letterSpacing": $letterSpacing,
54
54
  "fontWeight": null,
55
55
  "lineHeight": null,
56
56
  );
57
- $tmpMap: map.merge($addons, map.get($typographyTokensScreenSmall, $component));
58
- $tmpMapScreenLarge: map.merge($addons, map.get($typographyTokensScreenLarge, $component));
59
- $tmpMapScreenExtraLarge: map.merge($addons, map.get($typographyTokensScreenExtraLarge, $component));
57
+ $tmpMap: map.merge($addons, map.get($typographyTokensScreenSmall, $token));
58
+ $tmpMapScreenLarge: map.merge($addons, map.get($typographyTokensScreenLarge, $token));
59
+ $tmpMapScreenExtraLarge: map.merge($addons, map.get($typographyTokensScreenExtraLarge, $token));
60
60
 
61
61
  @if $tmpMap {
62
62
  @include ds-mq-largest-breakpoint(mobile) {
@@ -90,7 +90,7 @@ $dsSerifWeights: (
90
90
  }
91
91
 
92
92
  @mixin ds-typography-without-mq(
93
- $component,
93
+ $token,
94
94
  $screen: mobile,
95
95
  $forcePx: false,
96
96
  $fontWeight: null,
@@ -107,12 +107,12 @@ $dsSerifWeights: (
107
107
  );
108
108
 
109
109
  @if $screen == mobile {
110
- $tmpMap: map.merge($addons, map.get($typographyTokensScreenSmall, $component));
110
+ $tmpMap: map.merge($addons, map.get($typographyTokensScreenSmall, $token));
111
111
  } @else if $screen == tablet {
112
- $tmpMap: map.merge($addons, map.get($typographyTokensScreenLarge, $component));
112
+ $tmpMap: map.merge($addons, map.get($typographyTokensScreenLarge, $token));
113
113
  $scaling: "large";
114
114
  } @else if $screen == desktop {
115
- $tmpMap: map.merge($addons, map.get($typographyTokensScreenExtraLarge, $component));
115
+ $tmpMap: map.merge($addons, map.get($typographyTokensScreenExtraLarge, $token));
116
116
  $scaling: "extraLarge";
117
117
  }
118
118
 
@@ -26,7 +26,7 @@ These are copy paste friendly examples to quickliy get started using a component
26
26
  **With overriding addons**
27
27
  ```scss
28
28
  @include ds-typography(
29
- $component: $ds-typography-expressiveheading03,
29
+ $ds-typography-expressiveheading03,
30
30
  $fontWeight: $ds-fontweight-medium,
31
31
  $lineHeight: $ds-lineheight-tight,
32
32
  $letterSpacing: $ds-letterspacing-none
@@ -37,7 +37,7 @@ These are copy paste friendly examples to quickliy get started using a component
37
37
  All devices get the same sizes based on $screen parameter (defaults to mobile)
38
38
  ```scss
39
39
  @include ds-typography-without-mq(
40
- $component: $ds-typography-expressiveheading03,
40
+ $ds-typography-expressiveheading03,
41
41
  $screen: desktop,
42
42
  $fontWeight: $ds-fontweight-medium,
43
43
  $lineHeight: $ds-lineheight-tight,
@@ -1,7 +1,7 @@
1
1
  $ds-fontweight-regular: Regular;
2
2
  $ds-lineheight-none: 1;
3
3
  $ds-lineheight-s: 1.1;
4
- $ds-lineheight-m: 1.25;
4
+ $ds-lineheight-m: 1.2;
5
5
  $ds-lineheight-l: 1.5;
6
6
  $ds-fontweight-medium: Medium;
7
7
  $ds-fontweight-semibold: SemiBold;