@bonniernews/dn-design-system-web 16.0.6 → 16.0.7

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,13 @@ All changes to @bonniernews/dn-design-system-web will be documented in this file
4
4
 
5
5
 
6
6
 
7
+ ## [16.0.7](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@16.0.6...@bonniernews/dn-design-system-web@16.0.7) (2024-07-15)
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * **web:** update typo on native to scale correct ([#1336](https://github.com/BonnierNews/dn-design-system/issues/1336)) ([33add10](https://github.com/BonnierNews/dn-design-system/commit/33add10a88612a66ba133cce0ada2c8f2c3ccc73))
13
+
7
14
  ## [16.0.6](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@16.0.5...@bonniernews/dn-design-system-web@16.0.6) (2024-07-15)
8
15
 
9
16
 
@@ -43,14 +43,28 @@
43
43
 
44
44
  &.ds-teaser--native-large {
45
45
  .ds-teaser__title {
46
- @include ds-typography($ds-typography-expressiveheading04);
46
+ @include ds-mq-only-breakpoint(mobile) {
47
+ @include ds-typography($ds-typography-expressiveheading04);
48
+ }
47
49
 
48
50
  @include ds-mq-only-breakpoint(tablet) {
49
- font-size: ds-px-to-rem(40px);
51
+ @include ds-typography-manual(
52
+ $ds-typography-expressiveheading04,
53
+ 40,
54
+ $lineHeight: $ds-lineheight-s,
55
+ $weight: $ds-fontweight-bold,
56
+ $scaling: "large"
57
+ );
50
58
  }
51
59
 
52
60
  @include ds-mq-only-breakpoint(desktop) {
53
- font-size: ds-px-to-rem(56px);
61
+ @include ds-typography-manual(
62
+ $ds-typography-expressiveheading04,
63
+ 56,
64
+ $lineHeight: $ds-lineheight-s,
65
+ $weight: $ds-fontweight-bold,
66
+ $scaling: "extraLarge"
67
+ );
54
68
  }
55
69
  }
56
70
  }
@@ -58,13 +72,23 @@
58
72
  &.ds-teaser--native-right {
59
73
  .ds-teaser__title {
60
74
  @include ds-mq-only-breakpoint(mobile) {
61
- font-size: ds-px-to-rem(17px);
62
- line-height: $ds-lineheight-m;
75
+ @include ds-typography-manual(
76
+ $ds-typography-expressiveheading02,
77
+ 17,
78
+ $weight: $ds-fontweight-bold,
79
+ $lineHeight: $ds-lineheight-m,
80
+ $scaling: "large"
81
+ );
63
82
  }
64
83
 
65
84
  @include ds-mq-smallest-breakpoint(tablet) {
66
- line-height: ds-px-to-rem(30px);
67
- font-size: ds-px-to-rem(24px);
85
+ @include ds-typography-manual(
86
+ $ds-typography-expressiveheading02,
87
+ 24,
88
+ $weight: $ds-fontweight-bold,
89
+ $lineHeight: 1.25,
90
+ $scaling: "extraLarge"
91
+ );
68
92
  }
69
93
  }
70
94
  }
@@ -72,17 +96,32 @@
72
96
  &.ds-teaser--native-standard {
73
97
  .ds-teaser__title {
74
98
  @include ds-mq-only-breakpoint(mobile) {
75
- @include ds-typography($ds-typography-expressiveheading03, $lineHeight: $ds-lineheight-m);
99
+ @include ds-typography-manual(
100
+ $ds-typography-expressiveheading03,
101
+ 20,
102
+ $weight: $ds-fontweight-bold,
103
+ $lineHeight: $ds-lineheight-m
104
+ );
76
105
  }
77
106
 
78
107
  @include ds-mq-only-breakpoint(tablet) {
79
- @include ds-typography($ds-typography-expressiveheading03, $lineHeight: $ds-lineheight-s);
80
- font-size: ds-px-to-rem(26px) !important; /* stylelint-disable-line declaration-no-important */
108
+ @include ds-typography-manual(
109
+ $ds-typography-expressiveheading03,
110
+ 26,
111
+ $weight: $ds-fontweight-bold,
112
+ $lineHeight: $ds-lineheight-s,
113
+ $scaling: "large"
114
+ );
81
115
  }
82
116
 
83
117
  @include ds-mq-only-breakpoint(desktop) {
84
- @include ds-typography($ds-typography-expressiveheading03, $lineHeight: $ds-lineheight-s);
85
- font-size: ds-px-to-rem(36px) !important; /* stylelint-disable-line declaration-no-important */
118
+ @include ds-typography-manual(
119
+ $ds-typography-expressiveheading03,
120
+ 36,
121
+ $weight: $ds-fontweight-bold,
122
+ $lineHeight: $ds-lineheight-s,
123
+ $scaling: "extraLarge"
124
+ );
86
125
  }
87
126
  }
88
127
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bonniernews/dn-design-system-web",
3
- "version": "16.0.6",
3
+ "version": "16.0.7",
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",