@bonniernews/dn-design-system-web 16.0.1 → 16.0.3

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.
Files changed (39) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/assets/form-field/form-field.scss +4 -4
  3. package/components/badge/badge.scss +7 -2
  4. package/components/blocked-content/blocked-content.scss +13 -4
  5. package/components/buddy-menu/buddy-menu.scss +8 -8
  6. package/components/byline/byline.scss +13 -4
  7. package/components/checkbox/checkbox.scss +2 -2
  8. package/components/disclaimer/disclaimer.scss +4 -4
  9. package/components/factbox/factbox.scss +6 -6
  10. package/components/footer/footer.scss +8 -8
  11. package/components/game-header/game-header.scss +3 -3
  12. package/components/group-header/group-header.scss +3 -3
  13. package/components/image-caption/image-caption.scss +2 -2
  14. package/components/link-box/link-box-item.scss +2 -2
  15. package/components/list-item/list-item.scss +7 -11
  16. package/components/modal/modal.scss +2 -2
  17. package/components/radio-button/radio-button.scss +2 -2
  18. package/components/switch/switch.scss +2 -2
  19. package/components/teaser-large/teaser-large.scss +6 -2
  20. package/components/teaser-list-vertical/teaser-list-vertical.scss +6 -2
  21. package/components/teaser-longlife/teaser-longlife.scss +6 -3
  22. package/components/teaser-native/teaser-native.scss +31 -6
  23. package/components/teaser-onsite/teaser-onsite.scss +1 -1
  24. package/components/teaser-package/teaser-package.scss +1 -1
  25. package/components/teaser-right-now/teaser-right-now.scss +1 -1
  26. package/components/teaser-slideshow/teaser-slideshow.scss +2 -2
  27. package/components/teaser-swipe-card/teaser-swipe-card.scss +8 -4
  28. package/components/teaser-tipsa/teaser-tipsa.scss +2 -2
  29. package/components/text-button/text-button.scss +2 -2
  30. package/components/text-button-toggle/text-button-toggle.scss +2 -2
  31. package/components/text-input/text-input.scss +6 -6
  32. package/components/video-caption/video-caption.scss +4 -4
  33. package/components/vip-badge/vip-badge.scss +11 -2
  34. package/foundations/variables/typographyTokensList.scss +1 -0
  35. package/foundations/variables/typographyTokensScreenExtraLarge.scss +6 -0
  36. package/foundations/variables/typographyTokensScreenLarge.scss +6 -0
  37. package/foundations/variables/typographyTokensScreenSmall.scss +6 -0
  38. package/package.json +1 -1
  39. package/tokens/typography-list.json +1 -0
package/CHANGELOG.md CHANGED
@@ -4,6 +4,21 @@ All changes to @bonniernews/dn-design-system-web will be documented in this file
4
4
 
5
5
 
6
6
 
7
+ ## [16.0.3](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@16.0.2...@bonniernews/dn-design-system-web@16.0.3) (2024-07-09)
8
+
9
+
10
+ ### Maintenance
11
+
12
+ * **web:** update typo tokens ([#1322](https://github.com/BonnierNews/dn-design-system/issues/1322)) ([e336d0c](https://github.com/BonnierNews/dn-design-system/commit/e336d0cf849bd8766c0369140fbf46029b771080))
13
+
14
+ ## [16.0.2](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@16.0.1...@bonniernews/dn-design-system-web@16.0.2) (2024-07-08)
15
+
16
+
17
+ ### Maintenance
18
+
19
+ * **foundations:** update tokens from Figma ([#1331](https://github.com/BonnierNews/dn-design-system/issues/1331)) ([4bb8bb4](https://github.com/BonnierNews/dn-design-system/commit/4bb8bb414b937823a6e1d70d19e203af9ee78b3a))
20
+ * prerelease packages ([2286be7](https://github.com/BonnierNews/dn-design-system/commit/2286be7e493bcd677bde95444a5b27e4b3e570d0))
21
+
7
22
  ## [16.0.1](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@16.0.0...@bonniernews/dn-design-system-web@16.0.1) (2024-07-05)
8
23
 
9
24
 
@@ -7,7 +7,7 @@ $ds-form-field__error-icon-size: 20px;
7
7
  margin-top: ds-spacing($ds-s-050);
8
8
  margin-bottom: 0;
9
9
  color: $ds-color-text-primary-02;
10
- @include ds-typography($ds-typography-functional-body01regular);
10
+ @include ds-typography($ds-typography-functionalbody01);
11
11
  }
12
12
 
13
13
  .ds-form-field__error-message {
@@ -30,7 +30,7 @@ $ds-form-field__error-icon-size: 20px;
30
30
  }
31
31
  }
32
32
  span {
33
- @include ds-typography($ds-typography-functional-body01regular);
33
+ @include ds-typography($ds-typography-functionalbody01);
34
34
  }
35
35
  }
36
36
 
@@ -49,12 +49,12 @@ $ds-form-field__error-icon-size: 20px;
49
49
  width: $ds-form-field__error-icon-size;
50
50
  }
51
51
  span {
52
- @include ds-typography($ds-typography-functional-body01regular, true);
52
+ @include ds-typography($ds-typography-functionalbody01, true);
53
53
  }
54
54
  }
55
55
  }
56
56
 
57
57
  .ds-form-field__help-text {
58
- @include ds-typography($ds-typography-functional-body01regular, true);
58
+ @include ds-typography($ds-typography-functionalbody01, true);
59
59
  }
60
60
  }
@@ -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($ds-typography-functional-meta02semibold, $lineHeight: 0);
10
+ @include ds-typography($ds-typography-functionalmeta02, $lineHeight: 0, $fontWeight: $ds-fontweight-semibold);
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,12 @@ $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($ds-typography-functional-meta02semibold, $forcePx: true, $lineHeight: 0);
22
+ @include ds-typography(
23
+ $ds-typography-functionalmeta02,
24
+ $forcePx: true,
25
+ $lineHeight: 0,
26
+ $fontWeight: $ds-fontweight-semibold
27
+ );
23
28
  min-height: $ds-badge__min-size;
24
29
  min-width: $ds-badge__min-size;
25
30
  padding: ds-spacing($ds-s-025);
@@ -15,10 +15,10 @@
15
15
 
16
16
  .ds-blocked-content__body {
17
17
  margin: ds-spacing(0 0 $ds-s-200);
18
- @include ds-typography($ds-typography-functional-body02regular);
18
+ @include ds-typography($ds-typography-functionalbody02);
19
19
  color: $ds-color-text-primary;
20
20
  @at-root .ds-force-px#{&} {
21
- @include ds-typography($ds-typography-functional-body02regular, true);
21
+ @include ds-typography($ds-typography-functionalbody02, true);
22
22
  }
23
23
  }
24
24
 
@@ -30,11 +30,20 @@
30
30
  }
31
31
 
32
32
  .ds-blocked-content__title {
33
- @include ds-typography($ds-typography-functional-heading01semibold);
33
+ @include ds-typography(
34
+ $ds-typography-functionalheading01,
35
+ $lineHeight: $ds-lineheight-m,
36
+ $fontWeight: $ds-fontweight-semibold
37
+ );
34
38
  color: $ds-color-text-primary;
35
39
  margin: ds-spacing(0 0 $ds-s-050);
36
40
  @at-root .ds-force-px#{&} {
37
- @include ds-typography($ds-typography-functional-heading01semibold, true);
41
+ @include ds-typography(
42
+ $ds-typography-functionalheading01,
43
+ $forcePx: true,
44
+ $lineHeight: $ds-lineheight-m,
45
+ $fontWeight: $ds-fontweight-semibold
46
+ );
38
47
  }
39
48
  }
40
49
  }
@@ -48,7 +48,7 @@
48
48
  top: ds-spacing($ds-s-075);
49
49
  }
50
50
  .ds-buddy-menu__greeting {
51
- @include ds-typography($ds-typography-functional-heading03bold);
51
+ @include ds-typography($ds-typography-functionalheading03);
52
52
  color: $ds-color-text-primary;
53
53
  margin: ds-spacing(0 0 $ds-s-100);
54
54
  display: block;
@@ -56,7 +56,7 @@
56
56
  .ds-buddy-menu__account-title,
57
57
  .ds-buddy-menu__addons-title,
58
58
  .ds-buddy-menu__links-title {
59
- @include ds-typography($ds-typography-functional-body02semibold);
59
+ @include ds-typography($ds-typography-functionalbody02, $fontWeight: $ds-fontweight-semibold);
60
60
  color: $ds-color-text-primary;
61
61
  margin: ds-spacing(0 0 $ds-s-025);
62
62
  }
@@ -69,13 +69,13 @@
69
69
  list-style: none;
70
70
  a {
71
71
  @include ds-link($ds-link-list);
72
- @include ds-typography($ds-typography-functional-body02regular);
72
+ @include ds-typography($ds-typography-functionalbody02);
73
73
  color: $ds-color-text-primary-02;
74
74
  margin: ds-spacing(0 0 $ds-s-100);
75
75
  }
76
76
  }
77
77
  .ds-buddy-menu__account-level {
78
- @include ds-typography($ds-typography-functional-body02regular);
78
+ @include ds-typography($ds-typography-functionalbody02);
79
79
  color: $ds-color-text-primary-02;
80
80
  margin: ds-spacing(0 0 $ds-s-100);
81
81
  display: block;
@@ -90,18 +90,18 @@
90
90
 
91
91
  &.ds-force-px {
92
92
  .ds-buddy-menu__greeting {
93
- @include ds-typography($ds-typography-functional-heading03bold, true);
93
+ @include ds-typography($ds-typography-functionalheading03, true);
94
94
  }
95
95
  .ds-buddy-menu__account-title,
96
96
  .ds-buddy-menu__addons-title,
97
97
  .ds-buddy-menu__links-title {
98
- @include ds-typography($ds-typography-functional-body02semibold, true);
98
+ @include ds-typography($ds-typography-functionalbody02, $forcePx: true, $fontWeight: $ds-fontweight-semibold);
99
99
  }
100
100
  .ds-buddy-menu__addons-list a {
101
- @include ds-typography($ds-typography-functional-body02regular, true);
101
+ @include ds-typography($ds-typography-functionalbody02, true);
102
102
  }
103
103
  .ds-buddy-menu__account-level {
104
- @include ds-typography($ds-typography-functional-body02regular, true);
104
+ @include ds-typography($ds-typography-functionalbody02, true);
105
105
  }
106
106
  }
107
107
 
@@ -85,18 +85,27 @@ $ds-byline__image-size--direkt: 36px;
85
85
  word-break: break-all;
86
86
 
87
87
  .ds-byline__title {
88
- @include ds-typography($ds-typography-functional-heading01semibold);
88
+ @include ds-typography(
89
+ $ds-typography-functionalheading01,
90
+ $lineHeight: $ds-lineheight-m,
91
+ $fontWeight: $ds-fontweight-semibold
92
+ );
89
93
  @at-root .ds-force-px#{&} {
90
- @include ds-typography($ds-typography-functional-heading01semibold, true);
94
+ @include ds-typography(
95
+ $ds-typography-functionalheading01,
96
+ $forcePx: true,
97
+ $lineHeight: $ds-lineheight-m,
98
+ $fontWeight: $ds-fontweight-semibold
99
+ );
91
100
  }
92
101
  color: $ds-color-text-primary;
93
102
  text-align: left;
94
103
  }
95
104
 
96
105
  .ds-byline__subtitle {
97
- @include ds-typography($ds-typography-functional-body02regular);
106
+ @include ds-typography($ds-typography-functionalbody02);
98
107
  @at-root .ds-force-px#{&} {
99
- @include ds-typography($ds-typography-functional-body02regular, true);
108
+ @include ds-typography($ds-typography-functionalbody02, true);
100
109
  }
101
110
  color: $ds-color-text-primary-02;
102
111
  text-align: left;
@@ -38,10 +38,10 @@ $ds-checkbox__icon-size: 24px;
38
38
 
39
39
  .ds-checkbox__text {
40
40
  margin: ds-spacing(0 0 0 $ds-s-050, rem);
41
- @include ds-typography($ds-typography-functional-body02regular);
41
+ @include ds-typography($ds-typography-functionalbody02);
42
42
 
43
43
  @at-root .ds-force-px#{&} {
44
- @include ds-typography($ds-typography-functional-body02regular, true);
44
+ @include ds-typography($ds-typography-functionalbody02, true);
45
45
  margin: ds-spacing(0 0 0 $ds-s-050);
46
46
  }
47
47
  }
@@ -20,13 +20,13 @@ $ds-btn-outlined__border-width: ds-metrics-border-width(x1);
20
20
  }
21
21
 
22
22
  .ds-disclaimer__body-html {
23
- @include ds-typography($ds-typography-functional-body01regular);
23
+ @include ds-typography($ds-typography-functionalbody01);
24
24
  margin: 0;
25
25
  color: $ds-color-text-primary-02;
26
26
  flex-grow: 1;
27
27
 
28
28
  @at-root .ds-force-px#{&} {
29
- @include ds-typography($ds-typography-functional-body01regular, true);
29
+ @include ds-typography($ds-typography-functionalbody01, true);
30
30
  }
31
31
 
32
32
  a {
@@ -34,10 +34,10 @@ $ds-btn-outlined__border-width: ds-metrics-border-width(x1);
34
34
  }
35
35
  b,
36
36
  strong {
37
- @include ds-typography($ds-typography-functional-body01semibold);
37
+ @include ds-typography($ds-typography-functionalbody01, $fontWeight: $ds-fontweight-semibold);
38
38
  color: $ds-color-text-primary;
39
39
  @at-root .ds-force-px#{&} {
40
- @include ds-typography($ds-typography-functional-body01semibold, true);
40
+ @include ds-typography($ds-typography-functionalbody01, $forcePx: true, $fontWeight: $ds-fontweight-semibold);
41
41
  }
42
42
  }
43
43
  }
@@ -36,10 +36,10 @@ $ds-factbox__max-height: 500px; // includes top/bottom spacing
36
36
 
37
37
  .ds-factbox__body {
38
38
  overflow: hidden;
39
- @include ds-typography($ds-typography-functional-body02regular);
39
+ @include ds-typography($ds-typography-functionalbody02);
40
40
  color: $ds-color-text-primary;
41
41
  @at-root .ds-force-px#{&} {
42
- @include ds-typography($ds-typography-functional-body02regular, true);
42
+ @include ds-typography($ds-typography-functionalbody02, true);
43
43
  }
44
44
  p {
45
45
  margin: ds-spacing(0 0 $ds-s-100);
@@ -52,12 +52,12 @@ $ds-factbox__max-height: 500px; // includes top/bottom spacing
52
52
  }
53
53
  b,
54
54
  strong {
55
- @include ds-typography($ds-typography-functional-body02semibold);
55
+ @include ds-typography($ds-typography-functionalbody02, $fontWeight: $ds-fontweight-semibold);
56
56
  }
57
57
  @at-root .ds-force-px#{&} {
58
58
  b,
59
59
  strong {
60
- @include ds-typography($ds-typography-functional-body02semibold, true);
60
+ @include ds-typography($ds-typography-functionalbody02, $forcePx: true, $fontWeight: $ds-fontweight-semibold);
61
61
  }
62
62
  }
63
63
  img {
@@ -65,11 +65,11 @@ $ds-factbox__max-height: 500px; // includes top/bottom spacing
65
65
  }
66
66
  }
67
67
  .ds-factbox__title {
68
- @include ds-typography($ds-typography-functional-heading01bold);
68
+ @include ds-typography($ds-typography-functionalheading01, $lineHeight: $ds-lineheight-m);
69
69
  color: $ds-color-text-primary;
70
70
  margin: ds-spacing(0 0 $ds-s-100);
71
71
  @at-root .ds-force-px#{&} {
72
- @include ds-typography($ds-typography-functional-heading01bold, true);
72
+ @include ds-typography($ds-typography-functionalheading01, $forcePx: true, $lineHeight: $ds-lineheight-m);
73
73
  }
74
74
  }
75
75
  .ds-factbox__vignette {
@@ -61,7 +61,7 @@ $ds-footer-column-gap: ds-spacing($ds-s-400);
61
61
 
62
62
  &,
63
63
  p {
64
- @include ds-typography($ds-typography-functional-body01regular);
64
+ @include ds-typography($ds-typography-functionalbody01, $lineHeight: $ds-lineheight-l);
65
65
  }
66
66
 
67
67
  p {
@@ -96,12 +96,12 @@ $ds-footer-column-gap: ds-spacing($ds-s-400);
96
96
  }
97
97
 
98
98
  h2 {
99
- @include ds-typography($ds-typography-functional-body02bold);
99
+ @include ds-typography($ds-typography-functionalheading01, $lineHeight: $ds-lineheight-l);
100
100
  margin: ds-spacing(0 0 $ds-s-100);
101
101
  }
102
102
 
103
103
  ul {
104
- @include ds-typography($ds-typography-functional-body02regular);
104
+ @include ds-typography($ds-typography-functionalbody02, $lineHeight: $ds-lineheight-l);
105
105
  list-style: none;
106
106
  margin: 0;
107
107
  padding: 0;
@@ -122,7 +122,7 @@ $ds-footer-column-gap: ds-spacing($ds-s-400);
122
122
  }
123
123
 
124
124
  &__channels {
125
- @include ds-typography($ds-typography-functional-body01regular);
125
+ @include ds-typography($ds-typography-functionalbody01, $lineHeight: $ds-lineheight-l);
126
126
  margin-top: ds-spacing($ds-footer-row-gap-spacing-token);
127
127
 
128
128
  a {
@@ -146,19 +146,19 @@ $ds-footer-column-gap: ds-spacing($ds-s-400);
146
146
  .ds-footer__editors {
147
147
  &,
148
148
  p {
149
- @include ds-typography($ds-typography-functional-body01regular, true);
149
+ @include ds-typography($ds-typography-functionalbody01, $forcePx: true, $lineHeight: $ds-lineheight-l);
150
150
  }
151
151
  }
152
152
  .ds-footer__link-grid {
153
153
  h2 {
154
- @include ds-typography($ds-typography-functional-body02bold, true);
154
+ @include ds-typography($ds-typography-functionalheading01, true);
155
155
  }
156
156
  ul {
157
- @include ds-typography($ds-typography-functional-body02regular, true);
157
+ @include ds-typography($ds-typography-functionalbody02, true);
158
158
  }
159
159
  }
160
160
  .ds-footer__channels {
161
- @include ds-typography($ds-typography-functional-body01regular, true);
161
+ @include ds-typography($ds-typography-functionalbody01, true);
162
162
  }
163
163
  }
164
164
  }
@@ -25,7 +25,7 @@ $ds-game-header__icon-size: 105px;
25
25
  }
26
26
 
27
27
  .ds-game-header__title {
28
- @include ds-typography($ds-typography-functional-heading04bold);
28
+ @include ds-typography($ds-typography-functionalheading05);
29
29
  color: inherit;
30
30
  margin: 0;
31
31
  }
@@ -44,7 +44,7 @@ $ds-game-header__icon-size: 105px;
44
44
  }
45
45
 
46
46
  .ds-game-header__description-content {
47
- @include ds-typography($ds-typography-functional-body02regular);
47
+ @include ds-typography($ds-typography-functionalbody02);
48
48
  padding: ds-spacing($ds-s-100);
49
49
  color: $ds-color-text-primary;
50
50
 
@@ -58,7 +58,7 @@ $ds-game-header__icon-size: 105px;
58
58
 
59
59
  b,
60
60
  strong {
61
- @include ds-typography($ds-typography-functional-body02semibold);
61
+ @include ds-typography($ds-typography-functionalbody02, $fontWeight: $ds-fontweight-semibold);
62
62
  }
63
63
 
64
64
  p {
@@ -13,7 +13,7 @@ $ds-group-header__icon-size: 24px;
13
13
  align-items: stretch;
14
14
  background: var(--group-header-background);
15
15
  color: var(--group-header-color);
16
- @include ds-typography($ds-typography-functional-body02regular);
16
+ @include ds-typography($ds-typography-functionalbody02);
17
17
 
18
18
  &--bottom-border {
19
19
  border-bottom: ds-metrics-border-width(x1) solid $ds-color-border-primary;
@@ -67,7 +67,7 @@ $ds-group-header__icon-size: 24px;
67
67
  }
68
68
 
69
69
  .ds-group-header__right-link {
70
- @include ds-typography($ds-typography-functional-body01regular);
70
+ @include ds-typography($ds-typography-functionalbody01);
71
71
  @include ds-link($ds-link-paragraph);
72
72
  color: var(--group-header-icon-color);
73
73
  }
@@ -105,7 +105,7 @@ $ds-group-header__icon-size: 24px;
105
105
  .ds-group-header__title {
106
106
  padding: ds-spacing($ds-s-075 $ds-s-100);
107
107
  flex: 1;
108
- @include ds-typography($ds-typography-functional-body02bold);
108
+ @include ds-typography($ds-typography-functionalheading01, $lineHeight: $ds-lineheight-l);
109
109
  margin: 0;
110
110
  }
111
111
 
@@ -1,12 +1,12 @@
1
1
  @use "../../foundations/helpers/forward.helpers.scss" as *;
2
2
 
3
3
  .ds-image-caption {
4
- @include ds-typography($ds-typography-functional-body01regular);
4
+ @include ds-typography($ds-typography-functionalbody01);
5
5
  margin-top: ds-spacing($ds-s-050);
6
6
  color: $ds-color-text-primary;
7
7
 
8
8
  @at-root .ds-force-px#{&} {
9
- @include ds-typography($ds-typography-functional-body01regular, true);
9
+ @include ds-typography($ds-typography-functionalbody01, true);
10
10
  }
11
11
 
12
12
  > .ds-article-image__credits {
@@ -25,14 +25,14 @@
25
25
 
26
26
  .ds-link-box-item__label {
27
27
  color: $ds-color-text-primary;
28
- @include ds-typography($ds-typography-functional-body01semibold);
28
+ @include ds-typography($ds-typography-functionalbody01, $fontWeight: $ds-fontweight-semibold);
29
29
  word-break: break-word;
30
30
  display: block;
31
31
  }
32
32
 
33
33
  .ds-link-box-item__text {
34
34
  color: $ds-color-text-primary-02;
35
- @include ds-typography($ds-typography-functional-body01regular);
35
+ @include ds-typography($ds-typography-functionalbody01);
36
36
  display: block;
37
37
  }
38
38
 
@@ -74,27 +74,27 @@ $ds-list-item__icon-size: 24px;
74
74
  align-items: flex-start;
75
75
 
76
76
  .ds-list-item__title {
77
- @include ds-typography($ds-typography-functional-body02regular);
77
+ @include ds-typography($ds-typography-functionalbody02);
78
78
  @at-root .ds-force-px#{&} {
79
- @include ds-typography($ds-typography-functional-body02regular, true);
79
+ @include ds-typography($ds-typography-functionalbody02, true);
80
80
  }
81
81
  color: $ds-color-text-primary;
82
82
  text-align: left;
83
83
  }
84
84
 
85
85
  .ds-list-item__subtitle {
86
- @include ds-typography($ds-typography-functional-body02regular);
86
+ @include ds-typography($ds-typography-functionalbody02);
87
87
  @at-root .ds-force-px#{&} {
88
- @include ds-typography($ds-typography-functional-body02regular, true);
88
+ @include ds-typography($ds-typography-functionalbody02, true);
89
89
  }
90
90
  color: $ds-color-text-primary-02;
91
91
  }
92
92
  }
93
93
 
94
94
  .ds-list-item__meta {
95
- @include ds-typography($ds-typography-functional-body01regular);
95
+ @include ds-typography($ds-typography-functionalbody01);
96
96
  @at-root .ds-force-px#{&} {
97
- @include ds-typography($ds-typography-functional-body01regular, true);
97
+ @include ds-typography($ds-typography-functionalbody01, true);
98
98
  }
99
99
  color: $ds-color-text-primary-02;
100
100
  margin-left: ds-spacing($ds-s-100);
@@ -135,11 +135,7 @@ $ds-list-item__icon-size: 24px;
135
135
  @include ds-typography($ds-typography-functionalbody02, $fontWeight: $ds-fontweight-semibold);
136
136
 
137
137
  @at-root .ds-force-px#{&} {
138
- @include ds-typography(
139
- $ds-typography-functional-body02regular,
140
- $forcePx: true,
141
- $fontWeight: $ds-fontweight-semibold
142
- );
138
+ @include ds-typography($ds-typography-functionalbody02, $forcePx: true, $fontWeight: $ds-fontweight-semibold);
143
139
  }
144
140
  }
145
141
  }
@@ -85,14 +85,14 @@ body.no-scroll {
85
85
  }
86
86
 
87
87
  > h2 {
88
- @include ds-typography($ds-typography-functional-heading03bold);
88
+ @include ds-typography($ds-typography-functionalheading03);
89
89
  margin: ds-spacing(0 0 $ds-s-200);
90
90
  color: $ds-color-text-primary;
91
91
  text-align: center;
92
92
  }
93
93
 
94
94
  > p {
95
- @include ds-typography($ds-typography-functional-body02regular);
95
+ @include ds-typography($ds-typography-functionalbody02);
96
96
  margin: 0;
97
97
  text-align: center;
98
98
  color: $ds-color-text-primary;
@@ -38,9 +38,9 @@ $ds-radio-btn__icon-size: 24px;
38
38
 
39
39
  .ds-radio-btn__text {
40
40
  margin: ds-spacing(0 0 0 $ds-s-050, rem);
41
- @include ds-typography($ds-typography-functional-body02regular);
41
+ @include ds-typography($ds-typography-functionalbody02);
42
42
  @at-root .ds-force-px#{&} {
43
- @include ds-typography($ds-typography-functional-body02regular, true);
43
+ @include ds-typography($ds-typography-functionalbody02, true);
44
44
  margin: ds-spacing(0 0 0 $ds-s-050);
45
45
  }
46
46
  }
@@ -20,9 +20,9 @@ $ds-switch__container-width: 44px;
20
20
  .ds-switch__meta {
21
21
  margin: ds-spacing(0 $ds-s-050 0 0);
22
22
  color: $ds-color-text-primary-02;
23
- @include ds-typography($ds-typography-functional-body01regular);
23
+ @include ds-typography($ds-typography-functionalbody01);
24
24
  @at-root .ds-force-px#{&} {
25
- @include ds-typography($ds-typography-functional-body01regular, true);
25
+ @include ds-typography($ds-typography-functionalbody01, true);
26
26
  }
27
27
 
28
28
  .ds-switch__meta-on {
@@ -117,11 +117,15 @@
117
117
  @include ds-mq-smallest-breakpoint(tablet) {
118
118
  &.ds-teaser--right {
119
119
  .ds-teaser__title {
120
- @include ds-typography($ds-typography-expressive-heading02bold);
120
+ @include ds-typography($ds-typography-detailteaser-large-rightcol);
121
121
  }
122
122
 
123
123
  &.ds-teaser--large-italic .ds-teaser__title {
124
- @include ds-typography($ds-typography-expressive-heading02italicregular);
124
+ @include ds-typography(
125
+ $ds-typography-detailteaser-large-rightcol,
126
+ $fontWeight: $ds-fontweight-regular,
127
+ $fontStyle: italic
128
+ );
125
129
 
126
130
  @include ds-hover(true) {
127
131
  .ds-teaser__title {
@@ -69,7 +69,7 @@ $ds-teaser-list-vertical-media-icon-size: 20px;
69
69
  }
70
70
 
71
71
  .ds-teaser-list-vertical__item-title {
72
- @include ds-typography($ds-typography-expressive-heading01bold);
72
+ @include ds-typography($ds-typography-expressiveheading01);
73
73
  color: $ds-color-text-primary;
74
74
  word-break: break-word;
75
75
 
@@ -79,7 +79,11 @@ $ds-teaser-list-vertical-media-icon-size: 20px;
79
79
  }
80
80
 
81
81
  &.ds-teaser-list-vertical__item--italic .ds-teaser-list-vertical__item-title {
82
- @include ds-typography($ds-typography-expressive-heading01italicregular);
82
+ @include ds-typography(
83
+ $ds-typography-expressiveheading01,
84
+ $fontWeight: $ds-fontweight-medium,
85
+ $fontStyle: italic
86
+ );
83
87
  }
84
88
 
85
89
  .ds-teaser-footer {
@@ -52,13 +52,16 @@
52
52
 
53
53
  .ds-teaser__vignette {
54
54
  color: currentColor;
55
- @include ds-typography($ds-typography-functional-meta02bold);
56
- text-transform: uppercase;
55
+ @include ds-typography(
56
+ $ds-typography-functionallabel01,
57
+ $lineHeight: $ds-lineheight-l,
58
+ $letterSpacing: $ds-letterspacing-none
59
+ );
57
60
  margin: 0;
58
61
  }
59
62
 
60
63
  .ds-teaser__title {
61
64
  color: currentColor;
62
- @include ds-typography($ds-typography-functional-heading02bold);
65
+ @include ds-typography($ds-typography-detaillonglife);
63
66
  }
64
67
  }
@@ -24,7 +24,7 @@
24
24
  }
25
25
 
26
26
  .ds-teaser__title {
27
- @include ds-typography($ds-typography-expressive-heading02bold);
27
+ @include ds-typography($ds-typography-expressiveheading02);
28
28
  font-family: $ds-font--arial !important; /* stylelint-disable-line declaration-no-important */
29
29
  }
30
30
 
@@ -43,22 +43,47 @@
43
43
 
44
44
  &.ds-teaser--native-large {
45
45
  .ds-teaser__title {
46
- @include ds-typography($ds-typography-expressive-heading04bold);
46
+ @include ds-typography($ds-typography-expressiveheading04);
47
+
48
+ @include ds-mq-only-breakpoint(tablet) {
49
+ font-size: ds-px-to-rem(40px);
50
+ }
51
+
52
+ @include ds-mq-only-breakpoint(desktop) {
53
+ font-size: ds-px-to-rem(56px);
54
+ }
47
55
  }
48
56
  }
49
57
 
50
58
  &.ds-teaser--native-right {
51
- @include ds-mq-smallest-breakpoint(tablet) {
52
- .ds-teaser__title {
53
- font-size: ds-px-to-rem(24px);
59
+ .ds-teaser__title {
60
+ @include ds-mq-only-breakpoint(mobile) {
61
+ font-size: ds-px-to-rem(17px);
62
+ line-height: $ds-lineheight-m;
63
+ }
64
+
65
+ @include ds-mq-smallest-breakpoint(tablet) {
54
66
  line-height: ds-px-to-rem(30px);
67
+ font-size: ds-px-to-rem(24px);
55
68
  }
56
69
  }
57
70
  }
58
71
 
59
72
  &.ds-teaser--native-standard {
60
73
  .ds-teaser__title {
61
- @include ds-typography($ds-typography-expressive-heading03bold);
74
+ @include ds-mq-only-breakpoint(mobile) {
75
+ @include ds-typography($ds-typography-expressiveheading03, $lineHeight: $ds-lineheight-m);
76
+ }
77
+
78
+ @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 */
81
+ }
82
+
83
+ @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 */
86
+ }
62
87
  }
63
88
 
64
89
  .ds-teaser__media {
@@ -22,7 +22,7 @@
22
22
 
23
23
  .ds-teaser__text {
24
24
  margin-top: 0;
25
- @include ds-typography($ds-typography-functional-heading01bold);
25
+ @include ds-typography($ds-typography-functionalheading01, $lineHeight: $ds-lineheight-m);
26
26
  }
27
27
 
28
28
  .ds-teaser__media {
@@ -53,7 +53,7 @@
53
53
 
54
54
  .ds-group-header + .ds-teaser--large:not(.ds-teaser--large-italic):not(.ds-teaser--large-big-italic) {
55
55
  .ds-teaser__title {
56
- @include ds-typography($ds-typography-expressive-heading05bold);
56
+ @include ds-typography($ds-typography-detailteaser-baotaxl);
57
57
  }
58
58
 
59
59
  @include ds-mq-only-breakpoint(mobile) {
@@ -8,7 +8,7 @@
8
8
  padding: ds-spacing($ds-s-teaser-vertical-medium $ds-s-teaser-horizontal);
9
9
 
10
10
  .ds-teaser__title {
11
- @include ds-typography($ds-typography-expressive-heading01bold);
11
+ @include ds-typography($ds-typography-expressiveheading01);
12
12
  }
13
13
 
14
14
  @include ds-hover(true) {
@@ -20,12 +20,12 @@
20
20
 
21
21
  .ds-teaser__title {
22
22
  display: inline;
23
- @include ds-typography($ds-typography-functional-heading01bold);
23
+ @include ds-typography($ds-typography-functionalheading01, $lineHeight: $ds-lineheight-m);
24
24
  }
25
25
 
26
26
  .ds-teaser__text {
27
27
  display: inline;
28
- @include ds-typography($ds-typography-functional-heading01regular);
28
+ @include ds-typography($ds-typography-functionalbody02, $lineHeight: $ds-lineheight-m);
29
29
  }
30
30
  }
31
31
 
@@ -44,12 +44,12 @@
44
44
  }
45
45
 
46
46
  .ds-teaser-swipe-card__time {
47
- @include ds-typography($ds-typography-functional-meta02regular);
47
+ @include ds-typography($ds-typography-functionalmeta02, $lineHeight: $ds-lineheight-l);
48
48
  color: $ds-color-text-primary-02;
49
49
  }
50
50
 
51
51
  .ds-teaser__title {
52
- @include ds-typography($ds-typography-expressive-heading01bold);
52
+ @include ds-typography($ds-typography-expressiveheading01);
53
53
  margin-bottom: ds-spacing($ds-s-050);
54
54
  flex: 1;
55
55
  }
@@ -62,7 +62,11 @@
62
62
 
63
63
  &.ds-teaser-swipe-card--insandare {
64
64
  .ds-teaser__title {
65
- @include ds-typography($ds-typography-expressive-heading01italicregular);
65
+ @include ds-typography(
66
+ $ds-typography-expressiveheading01,
67
+ $fontWeight: $ds-fontweight-medium,
68
+ $fontStyle: italic
69
+ );
66
70
  }
67
71
  }
68
72
 
@@ -85,7 +89,7 @@
85
89
 
86
90
  .ds-teaser-swipe-card__time {
87
91
  display: flex;
88
- @include ds-typography($ds-typography-functional-body01semibold);
92
+ @include ds-typography($ds-typography-functionalbody01, $fontWeight: $ds-fontweight-semibold);
89
93
  color: $ds-theme-color;
90
94
  align-items: center;
91
95
  margin-bottom: ds-spacing($ds-s-025);
@@ -7,7 +7,7 @@
7
7
  }
8
8
 
9
9
  .ds-teaser__title {
10
- @include ds-typography($ds-typography-expressive-heading02bold);
10
+ @include ds-typography($ds-typography-detailteaser-tipsa, $lineHeight: $ds-lineheight-m);
11
11
  }
12
12
 
13
13
  @include ds-hover(true) {
@@ -17,7 +17,7 @@
17
17
  }
18
18
 
19
19
  .ds-teaser__text {
20
- @include ds-typography($ds-typography-functional-body02regular);
20
+ @include ds-typography($ds-typography-functionalbody02);
21
21
  margin-top: ds-spacing($ds-s-050);
22
22
  }
23
23
  }
@@ -74,7 +74,7 @@ $ds-text-btn__underline-offset: 2px;
74
74
  }
75
75
 
76
76
  .ds-text-btn__text {
77
- @include ds-typography-with-force-px($ds-typography-functional-body02regular);
77
+ @include ds-typography-with-force-px($ds-typography-functionalbody02);
78
78
  text-underline-offset: $ds-text-btn__underline-offset;
79
79
  color: $ds-color-text-primary;
80
80
  }
@@ -84,7 +84,7 @@ $ds-text-btn__underline-offset: 2px;
84
84
  }
85
85
 
86
86
  &.ds-text-btn--small .ds-text-btn__text {
87
- @include ds-typography-with-force-px($ds-typography-functional-body01regular);
87
+ @include ds-typography-with-force-px($ds-typography-functionalbody01);
88
88
  }
89
89
 
90
90
  @include ds-hover() {
@@ -69,9 +69,9 @@ $ds-text-btn-toggle__icon-size: 24px;
69
69
  }
70
70
 
71
71
  .ds-text-btn-toggle__text {
72
- @include ds-typography($ds-typography-functional-body02regular);
72
+ @include ds-typography($ds-typography-functionalbody02);
73
73
  @at-root .ds-force-px#{&} {
74
- @include ds-typography($ds-typography-functional-body02regular, true);
74
+ @include ds-typography($ds-typography-functionalbody02, true);
75
75
  }
76
76
  color: $ds-color-text-primary;
77
77
  }
@@ -23,7 +23,7 @@ $ds-text-input-toggle-btn__area: ($ds-text-input-toggle-btn__width + ds-spacing(
23
23
  width: 100%;
24
24
  color: $ds-color-text-primary;
25
25
  background-color: $ds-color-component-secondary;
26
- @include ds-typography($ds-typography-functional-body02regular);
26
+ @include ds-typography($ds-typography-functionalbody02);
27
27
  padding: ds-px-to-rem(ds-spacing($ds-s-100) - ds-border-width(x1)) ds-spacing($ds-s-100) - ds-border-width(x1);
28
28
  border: solid ds-border-width(x1) $ds-color-border-primary-02;
29
29
  border-radius: ds-border-radius(x1);
@@ -39,7 +39,7 @@ $ds-text-input-toggle-btn__area: ($ds-text-input-toggle-btn__width + ds-spacing(
39
39
  &:focus,
40
40
  &:not(:placeholder-shown) {
41
41
  + .ds-text-input__label {
42
- @include ds-typography($ds-typography-functional-meta02regular);
42
+ @include ds-typography($ds-typography-functionalmeta02);
43
43
  top: 0;
44
44
 
45
45
  &::before {
@@ -81,7 +81,7 @@ $ds-text-input-toggle-btn__area: ($ds-text-input-toggle-btn__width + ds-spacing(
81
81
  transition:
82
82
  font-size 0.1s ease-in,
83
83
  top 0.1s ease-in;
84
- @include ds-typography($ds-typography-functional-body02regular);
84
+ @include ds-typography($ds-typography-functionalbody02);
85
85
  &::before {
86
86
  content: "";
87
87
  width: calc(100% + ds-spacing($ds-s-050));
@@ -111,7 +111,7 @@ $ds-text-input-toggle-btn__area: ($ds-text-input-toggle-btn__width + ds-spacing(
111
111
  }
112
112
 
113
113
  .ds-text-input__input {
114
- @include ds-typography($ds-typography-functional-body02regular, true);
114
+ @include ds-typography($ds-typography-functionalbody02, true);
115
115
  padding: ds-spacing($ds-s-100) - ds-border-width(x1);
116
116
 
117
117
  &.password-toggle {
@@ -124,7 +124,7 @@ $ds-text-input-toggle-btn__area: ($ds-text-input-toggle-btn__width + ds-spacing(
124
124
  &:focus,
125
125
  &:not(:placeholder-shown) {
126
126
  + .ds-text-input__label {
127
- @include ds-typography($ds-typography-functional-meta02regular, true);
127
+ @include ds-typography($ds-typography-functionalmeta02, true);
128
128
  }
129
129
  }
130
130
 
@@ -134,7 +134,7 @@ $ds-text-input-toggle-btn__area: ($ds-text-input-toggle-btn__width + ds-spacing(
134
134
  }
135
135
 
136
136
  .ds-text-input__label {
137
- @include ds-typography($ds-typography-functional-body02regular, true);
137
+ @include ds-typography($ds-typography-functionalbody02, true);
138
138
  top: ds-spacing($ds-s-150);
139
139
  &::before {
140
140
  top: ds-spacing($ds-s-050);
@@ -1,18 +1,18 @@
1
1
  @use "../../foundations/helpers/forward.helpers.scss" as *;
2
2
 
3
3
  .ds-video-caption {
4
- @include ds-typography($ds-typography-functional-body01regular);
4
+ @include ds-typography($ds-typography-functionalbody01);
5
5
  color: $ds-color-text-primary;
6
6
 
7
7
  .ds-video-caption__duration {
8
- @include ds-typography($ds-typography-functional-body01bold);
8
+ @include ds-typography($ds-typography-functionalbody01, $fontWeight: $ds-fontweight-bold);
9
9
  margin-right: ds-spacing($ds-s-025);
10
10
  }
11
11
 
12
12
  @at-root .ds-force-px#{&} {
13
- @include ds-typography($ds-typography-functional-body01regular, true);
13
+ @include ds-typography($ds-typography-functionalbody01, true);
14
14
  .ds-video-caption__duration {
15
- @include ds-typography($ds-typography-functional-body01bold, true);
15
+ @include ds-typography($ds-typography-functionalbody01, $forcePx: true, $fontWeight: $ds-fontweight-bold);
16
16
  }
17
17
  }
18
18
  }
@@ -12,11 +12,20 @@ $ds-vip-badge__icon-size: 16px;
12
12
  background-color: $ds-color-component-business;
13
13
  color: $ds-color-static-white;
14
14
  fill: $ds-color-static-white;
15
- @include ds-typography($ds-typography-functional-meta01regular);
15
+ @include ds-typography(
16
+ $ds-typography-functionalmeta01,
17
+ $lineHeight: $ds-lineheight-l,
18
+ $letterSpacing: $ds-letterspacing-none
19
+ );
16
20
  padding: ds-spacing($ds-s-025, rem);
17
21
 
18
22
  @at-root .ds-force-px#{&} {
19
- @include ds-typography($ds-typography-functional-meta01regular, true);
23
+ @include ds-typography(
24
+ $ds-typography-functionalmeta01,
25
+ $forcePx: true,
26
+ $lineHeight: $ds-lineheight-l,
27
+ $letterSpacing: $ds-letterspacing-none
28
+ );
20
29
  border-radius: ds-border-radius(x1) 0 ds-border-radius(x1) ds-border-radius(x1);
21
30
  padding: ds-spacing($ds-s-025);
22
31
  }
@@ -27,6 +27,7 @@ $ds-typography-detailstandard-button-xlarge: 'detailstandard-button-xlarge';
27
27
  $ds-typography-detailteaser-large-rightcol: 'detailteaser-large-rightcol';
28
28
  $ds-typography-detailteaser-baotaxl: 'detailteaser-baotaxl';
29
29
  $ds-typography-detailteaser-tipsa: 'detailteaser-tipsa';
30
+ $ds-typography-detaillonglife: 'detaillonglife';
30
31
  $ds-typography-expressiveheading01: 'expressiveheading01';
31
32
  $ds-typography-expressiveheading02: 'expressiveheading02';
32
33
  $ds-typography-expressiveheading03: 'expressiveheading03';
@@ -145,6 +145,12 @@ $typographyTokensScreenExtraLarge: (
145
145
  lineHeight: 1.1,
146
146
  letterSpacing: 0
147
147
  ),
148
+ detaillonglife: (
149
+ fontFamily: "DN Sans",
150
+ fontWeight: Bold,
151
+ fontSize: 20,
152
+ lineHeight: 1.1
153
+ ),
148
154
  detaildropcap: (
149
155
  fontFamily: "DN Serif Display",
150
156
  fontWeight: Bold,
@@ -167,6 +167,12 @@ $typographyTokensScreenLarge: (
167
167
  lineHeight: 1.1,
168
168
  letterSpacing: 0
169
169
  ),
170
+ detaillonglife: (
171
+ fontFamily: "DN Sans",
172
+ fontWeight: Bold,
173
+ fontSize: 20,
174
+ lineHeight: 1.1
175
+ ),
170
176
  detailstandard-button: (
171
177
  fontFamily: "DN Sans",
172
178
  fontWeight: SemiBold,
@@ -209,6 +209,12 @@ $typographyTokensScreenSmall: (
209
209
  lineHeight: 1.2,
210
210
  letterSpacing: 0
211
211
  ),
212
+ detaillonglife: (
213
+ fontFamily: "DN Sans",
214
+ fontWeight: Bold,
215
+ fontSize: 20,
216
+ lineHeight: 1.1
217
+ ),
212
218
  expressiveheading01: (
213
219
  fontFamily: "DN Serif Text",
214
220
  fontWeight: Bold,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bonniernews/dn-design-system-web",
3
- "version": "16.0.1",
3
+ "version": "16.0.3",
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",
@@ -28,6 +28,7 @@
28
28
  "detailteaser-large-rightcol": "'detailteaser-large-rightcol'",
29
29
  "detailteaser-baotaxl": "'detailteaser-baotaxl'",
30
30
  "detailteaser-tipsa": "'detailteaser-tipsa'",
31
+ "detaillonglife": "'detaillonglife'",
31
32
  "expressiveheading01": "'expressiveheading01'",
32
33
  "expressiveheading02": "'expressiveheading02'",
33
34
  "expressiveheading03": "'expressiveheading03'",