@bonniernews/dn-design-system-web 3.0.0-alpha.2 → 3.0.0-alpha.21

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 (56) hide show
  1. package/CHANGELOG.md +166 -0
  2. package/README.md +1 -1
  3. package/assets/article-image/article-image.njk +34 -0
  4. package/assets/article-image/article-image.scss +6 -0
  5. package/assets/form-field/form-field.scss +5 -9
  6. package/components/article-body-image/README.md +42 -0
  7. package/components/article-body-image/article-body-image.njk +19 -0
  8. package/components/article-body-image/article-body-image.scss +8 -0
  9. package/components/article-top-image/README.md +40 -0
  10. package/components/article-top-image/article-top-image.njk +19 -0
  11. package/components/article-top-image/article-top-image.scss +6 -0
  12. package/components/badge/badge.scss +5 -9
  13. package/components/blocked-content/blocked-content.scss +6 -6
  14. package/components/buddy-menu/buddy-menu.scss +14 -21
  15. package/components/button/button.scss +22 -19
  16. package/components/button-toggle/button-toggle.scss +22 -21
  17. package/components/byline/byline.scss +11 -8
  18. package/components/checkbox/checkbox.scss +10 -14
  19. package/components/disclaimer/disclaimer.scss +26 -12
  20. package/components/divider/divider.scss +1 -1
  21. package/components/factbox/factbox.scss +11 -9
  22. package/components/footer/footer.scss +14 -20
  23. package/components/icon-button/icon-button.scss +3 -3
  24. package/components/icon-button-toggle/icon-button-toggle.scss +3 -3
  25. package/components/image-caption/README.md +38 -0
  26. package/components/image-caption/image-caption.njk +25 -0
  27. package/components/image-caption/image-caption.scss +15 -0
  28. package/components/list-item/list-item.scss +9 -9
  29. package/components/quote/quote.scss +2 -2
  30. package/components/radio-button/radio-button.scss +10 -15
  31. package/components/switch/switch.scss +2 -2
  32. package/components/text-button/text-button.scss +8 -13
  33. package/components/text-button-toggle/text-button-toggle.scss +4 -10
  34. package/components/text-input/text-input.scss +20 -24
  35. package/components/thematic-break/thematic-break.scss +1 -1
  36. package/components/video-caption/README.md +37 -0
  37. package/components/video-caption/video-caption.njk +26 -0
  38. package/components/video-caption/video-caption.scss +18 -0
  39. package/foundations/helpers/README-links.md +1 -1
  40. package/foundations/helpers/README-spacing.md +48 -10
  41. package/foundations/helpers/spacing.scss +3 -1
  42. package/foundations/typography/fontDefinitions.scss +106 -60
  43. package/foundations/variables/colorsCssVariables.scss +3 -0
  44. package/foundations/variables/colorsDnDarkTokens.scss +4 -1
  45. package/foundations/variables/colorsDnLightTokens.scss +3 -0
  46. package/foundations/variables/spacingComponentList.scss +10 -0
  47. package/foundations/variables/spacingLayout.scss +1 -0
  48. package/foundations/variables/spacingLayoutLargeScreen.scss +3 -9
  49. package/foundations/variables/spacingLayoutList.scss +9 -0
  50. package/foundations/variables/typographyTokensList.scss +31 -30
  51. package/foundations/variables/typographyTokensScreenLarge.scss +167 -161
  52. package/foundations/variables/typographyTokensScreenSmall.scss +189 -183
  53. package/package.json +2 -2
  54. package/tokens/colors-css-variables.json +3 -0
  55. package/tokens/spacing-component-list.json +12 -0
  56. package/tokens/spacing-layout-list.json +11 -0
@@ -41,7 +41,7 @@ $ds-btn__icon-size: 24px;
41
41
  border: $ds-btn-outlined__border-width solid;
42
42
  border-radius: ds-metrics-border-radius(x1);
43
43
  /* stylelint-disable-next-line */
44
- padding: ds-spacing-component(x3, rem) - ds-px-to-rem($ds-btn-outlined__border-width) ds-spacing-component(x6, rem) - ds-px-to-rem($ds-btn-outlined__border-width);
44
+ padding: ds-spacing-component($ds-sc-x3, rem) - ds-px-to-rem($ds-btn-outlined__border-width) ds-spacing-component($ds-sc-x6, rem) - ds-px-to-rem($ds-btn-outlined__border-width);
45
45
  position: relative;
46
46
  &::before {
47
47
  content: "";
@@ -75,14 +75,17 @@ $ds-btn__icon-size: 24px;
75
75
  &,
76
76
  & .ds-btn__inner {
77
77
  width: 100%;
78
+ box-sizing: border-box;
78
79
  }
79
80
  }
80
81
 
81
82
  .ds-btn--small .ds-btn__inner {
82
83
  padding: ds-px-to-rem(
83
- ds-spacing-component(x2) - $ds-btn-outlined__border-width
84
+ ds-spacing-component($ds-sc-x2) - $ds-btn-outlined__border-width
84
85
  )
85
- ds-px-to-rem(ds-spacing-component(x5) - $ds-btn-outlined__border-width);
86
+ ds-px-to-rem(
87
+ ds-spacing-component($ds-sc-x5) - $ds-btn-outlined__border-width
88
+ );
86
89
  }
87
90
 
88
91
  @include ds-mq-only-breakpoint(mobile) {
@@ -103,7 +106,7 @@ $ds-btn__icon-size: 24px;
103
106
  display: flex;
104
107
  height: ds-px-to-rem($ds-btn__icon-size);
105
108
  width: ds-px-to-rem($ds-btn__icon-size);
106
- margin: ds-spacing-component(0 0 0 x2, rem);
109
+ margin: ds-spacing-component(0 0 0 $ds-sc-x2, rem);
107
110
  svg {
108
111
  fill: currentColor;
109
112
  }
@@ -113,12 +116,12 @@ $ds-btn__icon-size: 24px;
113
116
  .ds-btn--icon-right {
114
117
  .ds-btn__inner {
115
118
  padding-right: ds-px-to-rem(
116
- ds-spacing-component(x5) - $ds-btn-outlined__border-width
119
+ ds-spacing-component($ds-sc-x5) - $ds-btn-outlined__border-width
117
120
  );
118
121
  }
119
122
  &.ds-btn--small .ds-btn__inner {
120
123
  padding-right: ds-px-to-rem(
121
- ds-spacing-component(x4) - $ds-btn-outlined__border-width
124
+ ds-spacing-component($ds-sc-x4) - $ds-btn-outlined__border-width
122
125
  );
123
126
  }
124
127
  }
@@ -127,15 +130,15 @@ $ds-btn__icon-size: 24px;
127
130
  .ds-btn__inner {
128
131
  flex-direction: row-reverse;
129
132
  padding-left: ds-px-to-rem(
130
- ds-spacing-component(x5) - $ds-btn-outlined__border-width
133
+ ds-spacing-component($ds-sc-x5) - $ds-btn-outlined__border-width
131
134
  );
132
135
  .ds-icon {
133
- margin: ds-spacing-component(0 x2 0 0, rem);
136
+ margin: ds-spacing-component(0 $ds-sc-x2 0 0, rem);
134
137
  }
135
138
  }
136
139
  &.ds-btn--small .ds-btn__inner {
137
140
  padding-left: ds-px-to-rem(
138
- ds-spacing-component(x4) - $ds-btn-outlined__border-width
141
+ ds-spacing-component($ds-sc-x4) - $ds-btn-outlined__border-width
139
142
  );
140
143
  }
141
144
  }
@@ -289,37 +292,37 @@ $ds-btn__icon-size: 24px;
289
292
 
290
293
  .ds-btn.ds-force-px {
291
294
  .ds-btn__inner {
292
- padding: ds-spacing-component(x3) - $ds-btn-outlined__border-width
293
- ds-spacing-component(x6) - $ds-btn-outlined__border-width;
295
+ padding: ds-spacing-component($ds-sc-x3) - $ds-btn-outlined__border-width
296
+ ds-spacing-component($ds-sc-x6) - $ds-btn-outlined__border-width;
294
297
  @include ds-typography($ds-typography-detailstandard-button, true);
295
298
  }
296
299
  &.ds-btn--icon-left .ds-btn__inner,
297
300
  &.ds-btn--icon-right .ds-btn__inner {
298
301
  .ds-icon {
299
- margin: ds-spacing-component(0 0 0 x2);
302
+ margin: ds-spacing-component(0 0 0 $ds-sc-x2);
300
303
  height: $ds-btn__icon-size;
301
304
  width: $ds-btn__icon-size;
302
305
  }
303
306
  }
304
307
  &.ds-btn--icon-right .ds-btn__inner {
305
- padding-right: ds-spacing-component(x5)-$ds-btn-outlined__border-width;
308
+ padding-right: ds-spacing-component($ds-sc-x5)-$ds-btn-outlined__border-width;
306
309
  }
307
310
  &.ds-btn--icon-left .ds-btn__inner {
308
- padding-left: ds-spacing-component(x5)-$ds-btn-outlined__border-width;
311
+ padding-left: ds-spacing-component($ds-sc-x5)-$ds-btn-outlined__border-width;
309
312
  .ds-icon {
310
- margin: ds-spacing-component(0 x2 0 0);
313
+ margin: ds-spacing-component(0 $ds-sc-x2 0 0);
311
314
  }
312
315
  }
313
316
  &.ds-btn--small {
314
317
  .ds-btn__inner {
315
- padding: ds-spacing-component(x2)-$ds-btn-outlined__border-width
316
- ds-spacing-component(x5)-$ds-btn-outlined__border-width;
318
+ padding: ds-spacing-component($ds-sc-x2)-$ds-btn-outlined__border-width
319
+ ds-spacing-component($ds-sc-x5)-$ds-btn-outlined__border-width;
317
320
  }
318
321
  &.ds-btn--icon-right .ds-btn__inner {
319
- padding-right: ds-spacing-component(x4)-$ds-btn-outlined__border-width;
322
+ padding-right: ds-spacing-component($ds-sc-x4)-$ds-btn-outlined__border-width;
320
323
  }
321
324
  &.ds-btn--icon-left .ds-btn__inner {
322
- padding-left: ds-spacing-component(x4)-$ds-btn-outlined__border-width;
325
+ padding-left: ds-spacing-component($ds-sc-x4)-$ds-btn-outlined__border-width;
323
326
  }
324
327
  }
325
328
  }
@@ -44,7 +44,7 @@ $ds-btn-toggle__icon-size-xsmall: 20px;
44
44
  border: $ds-btn-toggle-outlined__border-width solid;
45
45
  border-radius: 100px;
46
46
  /* stylelint-disable-next-line */
47
- padding: ds-spacing-component(x3, rem) - ds-px-to-rem($ds-btn-toggle-outlined__border-width) ds-spacing-component(x6, rem) - ds-px-to-rem($ds-btn-toggle-outlined__border-width);
47
+ padding: ds-spacing-component($ds-sc-x3, rem) - ds-px-to-rem($ds-btn-toggle-outlined__border-width) ds-spacing-component($ds-sc-x6, rem) - ds-px-to-rem($ds-btn-toggle-outlined__border-width);
48
48
  position: relative;
49
49
  &::before {
50
50
  content: "";
@@ -81,25 +81,26 @@ $ds-btn-toggle__icon-size-xsmall: 20px;
81
81
  &,
82
82
  & .ds-btn-toggle__inner {
83
83
  width: 100%;
84
+ box-sizing: border-box;
84
85
  }
85
86
  }
86
87
 
87
88
  .ds-btn-toggle--small .ds-btn-toggle__inner {
88
89
  padding: ds-px-to-rem(
89
- ds-spacing-component(x2) - $ds-btn-toggle-outlined__border-width
90
+ ds-spacing-component($ds-sc-x2) - $ds-btn-toggle-outlined__border-width
90
91
  )
91
92
  ds-px-to-rem(
92
- ds-spacing-component(x5) - $ds-btn-toggle-outlined__border-width
93
+ ds-spacing-component($ds-sc-x5) - $ds-btn-toggle-outlined__border-width
93
94
  );
94
95
  }
95
96
 
96
97
  .ds-btn-toggle--xsmall .ds-btn-toggle__inner {
97
98
  @include ds-typography($ds-typography-detailstandard-button-small);
98
99
  padding: ds-px-to-rem(
99
- ds-spacing-component(x1) - $ds-btn-toggle-outlined__border-width
100
+ ds-spacing-component($ds-sc-x1) - $ds-btn-toggle-outlined__border-width
100
101
  )
101
102
  ds-px-to-rem(
102
- ds-spacing-component(x3) - $ds-btn-toggle-outlined__border-width
103
+ ds-spacing-component($ds-sc-x3) - $ds-btn-toggle-outlined__border-width
103
104
  );
104
105
  }
105
106
 
@@ -164,7 +165,7 @@ $ds-btn-toggle__icon-size-xsmall: 20px;
164
165
  border-color: $ds-color-border-primary-03;
165
166
  color: $ds-color-text-primary;
166
167
  padding-left: ds-px-to-rem(
167
- ds-spacing-component(x5) - $ds-btn-toggle-outlined__border-width
168
+ ds-spacing-component($ds-sc-x5) - $ds-btn-toggle-outlined__border-width
168
169
  );
169
170
 
170
171
  .ds-btn-toggle__on {
@@ -178,7 +179,7 @@ $ds-btn-toggle__icon-size-xsmall: 20px;
178
179
  display: flex;
179
180
  height: ds-px-to-rem($ds-btn-toggle__icon-size);
180
181
  width: ds-px-to-rem($ds-btn-toggle__icon-size);
181
- margin: ds-spacing-component(0 x2 0 0, rem);
182
+ margin: ds-spacing-component(0 $ds-sc-x2 0 0, rem);
182
183
  svg {
183
184
  fill: currentColor;
184
185
  }
@@ -187,18 +188,18 @@ $ds-btn-toggle__icon-size-xsmall: 20px;
187
188
 
188
189
  &.ds-btn-toggle--small .ds-btn-toggle__inner {
189
190
  padding-left: ds-px-to-rem(
190
- ds-spacing-component(x4) - $ds-btn-toggle-outlined__border-width
191
+ ds-spacing-component($ds-sc-x4) - $ds-btn-toggle-outlined__border-width
191
192
  );
192
193
  }
193
194
 
194
195
  &.ds-btn-toggle--xsmall .ds-btn-toggle__inner {
195
196
  padding-left: ds-px-to-rem(
196
- ds-spacing-component(x2) - $ds-btn-toggle-outlined__border-width
197
+ ds-spacing-component($ds-sc-x2) - $ds-btn-toggle-outlined__border-width
197
198
  );
198
199
  .ds-icon {
199
200
  height: ds-px-to-rem($ds-btn-toggle__icon-size-xsmall);
200
201
  width: ds-px-to-rem($ds-btn-toggle__icon-size-xsmall);
201
- margin: ds-spacing-component(0 x1 0 0, rem);
202
+ margin: ds-spacing-component(0 $ds-sc-x1 0 0, rem);
202
203
  }
203
204
  }
204
205
 
@@ -219,40 +220,40 @@ $ds-btn-toggle__icon-size-xsmall: 20px;
219
220
 
220
221
  .ds-btn-toggle.ds-force-px {
221
222
  .ds-btn-toggle__inner {
222
- padding: ds-spacing-component(x3) - $ds-btn-toggle-outlined__border-width
223
- ds-spacing-component(x6) - $ds-btn-toggle-outlined__border-width;
223
+ /* stylelint-disable-next-line */
224
+ padding: ds-spacing-component($ds-sc-x3) - $ds-btn-toggle-outlined__border-width ds-spacing-component($ds-sc-x6) - $ds-btn-toggle-outlined__border-width;
224
225
  @include ds-typography($ds-typography-detailstandard-button, true);
225
226
  }
226
227
  &.ds-btn-toggle--selected .ds-btn-toggle__inner {
227
- padding-left: ds-spacing-component(x5)-$ds-btn-toggle-outlined__border-width;
228
+ padding-left: ds-spacing-component($ds-sc-x5)-$ds-btn-toggle-outlined__border-width;
228
229
  .ds-icon {
229
- margin: ds-spacing-component(0 x2 0 0);
230
+ margin: ds-spacing-component(0 $ds-sc-x2 0 0);
230
231
  height: $ds-btn-toggle__icon-size;
231
232
  width: $ds-btn-toggle__icon-size;
232
233
  }
233
234
  }
234
235
  &.ds-btn-toggle--small {
235
236
  .ds-btn-toggle__inner {
236
- padding: ds-spacing-component(x2)-$ds-btn-toggle-outlined__border-width
237
- ds-spacing-component(x5)-$ds-btn-toggle-outlined__border-width;
237
+ padding: ds-spacing-component($ds-sc-x2)-$ds-btn-toggle-outlined__border-width
238
+ ds-spacing-component($ds-sc-x5)-$ds-btn-toggle-outlined__border-width;
238
239
  }
239
240
  &.ds-btn-toggle--selected .ds-btn-toggle__inner {
240
- padding-left: ds-spacing-component(x4)-$ds-btn-toggle-outlined__border-width;
241
+ padding-left: ds-spacing-component($ds-sc-x4)-$ds-btn-toggle-outlined__border-width;
241
242
  }
242
243
  }
243
244
  &.ds-btn-toggle--xsmall {
244
245
  .ds-btn-toggle__inner {
245
246
  @include ds-typography($ds-typography-detailstandard-button-small, true);
246
- padding: ds-spacing-component(x1)-$ds-btn-toggle-outlined__border-width
247
- ds-spacing-component(x3)-$ds-btn-toggle-outlined__border-width;
247
+ padding: ds-spacing-component($ds-sc-x1)-$ds-btn-toggle-outlined__border-width
248
+ ds-spacing-component($ds-sc-x3)-$ds-btn-toggle-outlined__border-width;
248
249
  .ds-icon {
249
- margin: ds-spacing-component(0 x1 0 0);
250
+ margin: ds-spacing-component(0 $ds-sc-x1 0 0);
250
251
  height: $ds-btn-toggle__icon-size-xsmall;
251
252
  width: $ds-btn-toggle__icon-size-xsmall;
252
253
  }
253
254
  }
254
255
  &.ds-btn-toggle--selected .ds-btn-toggle__inner {
255
- padding-left: ds-spacing-component(x2)-$ds-btn-toggle-outlined__border-width;
256
+ padding-left: ds-spacing-component($ds-sc-x2)-$ds-btn-toggle-outlined__border-width;
256
257
  }
257
258
  }
258
259
  }
@@ -23,10 +23,10 @@ $ds-byline__image-size: 44px;
23
23
  &::after {
24
24
  content: "";
25
25
  height: ds-metrics-border-width(x1);
26
- width: calc(100% - (ds-spacing-component(outer) * 2));
26
+ width: calc(100% - (ds-spacing-component($ds-sc-outer) * 2));
27
27
  background-color: $ds-color-border-primary;
28
28
  position: absolute;
29
- left: ds-spacing-component(x4);
29
+ left: ds-spacing-component($ds-sc-x4);
30
30
  bottom: 0;
31
31
  }
32
32
 
@@ -39,7 +39,7 @@ $ds-byline__image-size: 44px;
39
39
  align-items: center;
40
40
  justify-content: space-between;
41
41
  position: relative;
42
- padding: ds-spacing-component(x4 outer);
42
+ padding: ds-spacing-component($ds-sc-x4 $ds-sc-outer);
43
43
  width: 100%;
44
44
 
45
45
  &::before {
@@ -88,7 +88,7 @@ $ds-byline__image-size: 44px;
88
88
  width: $ds-byline__image-size;
89
89
  border-radius: 50%;
90
90
  overflow: hidden;
91
- margin-right: ds-spacing-component(x4);
91
+ margin-right: ds-spacing-component($ds-sc-x4);
92
92
  background-color: $ds-color-component-primary-overlay;
93
93
  flex-shrink: 0;
94
94
  }
@@ -101,9 +101,12 @@ $ds-byline__image-size: 44px;
101
101
  word-break: break-all;
102
102
 
103
103
  .ds-byline__title {
104
- @include ds-typography($ds-typography-functional-heading01medium);
104
+ @include ds-typography($ds-typography-functional-heading01semibold);
105
105
  @at-root .ds-force-px#{&} {
106
- @include ds-typography($ds-typography-functional-heading01medium, true);
106
+ @include ds-typography(
107
+ $ds-typography-functional-heading01semibold,
108
+ true
109
+ );
107
110
  }
108
111
  color: $ds-color-text-primary;
109
112
  text-align: left;
@@ -122,13 +125,13 @@ $ds-byline__image-size: 44px;
122
125
  .ds-byline__icon-right {
123
126
  color: $ds-color-icon-primary;
124
127
  display: inline-flex;
125
- margin-left: ds-spacing-component(x4);
128
+ margin-left: ds-spacing-component($ds-sc-x4);
126
129
  }
127
130
 
128
131
  .ds-byline__btn-toggle {
129
132
  min-height: 44px;
130
133
  min-width: 48px;
131
- margin-left: ds-spacing-component(x4);
134
+ margin-left: ds-spacing-component($ds-sc-x4);
132
135
  }
133
136
 
134
137
  @include ds-hover() {
@@ -1,8 +1,4 @@
1
- @use "../../foundations/helpers/spacing.scss" as *;
2
- @use "../../foundations/helpers/typography.scss" as *;
3
- @use "../../foundations/helpers/metrics.scss" as *;
4
- @use "../../foundations/helpers/utilities.scss" as *;
5
- @use "../../foundations/helpers/colors.scss" as *;
1
+ @use "../../foundations/helpers/forward.helpers.scss" as *;
6
2
  @use "../../assets/form-field/form-field.scss" as *;
7
3
  @use "../../foundations/icons/icon.scss" as *;
8
4
 
@@ -20,7 +16,7 @@ $ds-checkbox__icon-size: 24px;
20
16
  justify-content: center;
21
17
  color: $ds-color-text-primary;
22
18
  position: relative;
23
- padding: ds-spacing-component(x3);
19
+ padding: ds-spacing-component($ds-sc-x3);
24
20
  &::before {
25
21
  content: "";
26
22
  position: absolute;
@@ -31,11 +27,11 @@ $ds-checkbox__icon-size: 24px;
31
27
  bottom: 0;
32
28
  }
33
29
  .ds-checkbox__text {
34
- margin: ds-spacing-component(0 0 0 x2, rem);
30
+ margin: ds-spacing-component(0 0 0 $ds-sc-x2, rem);
35
31
  @include ds-typography($ds-typography-functional-body02regular);
36
32
  @at-root .ds-force-px#{&} {
37
33
  @include ds-typography($ds-typography-functional-body02regular, true);
38
- margin: ds-spacing-component(0 0 0 x2);
34
+ margin: ds-spacing-component(0 0 0 $ds-sc-x2);
39
35
  }
40
36
  }
41
37
  .ds-checkbox__icon {
@@ -99,13 +95,13 @@ $ds-checkbox__icon-size: 24px;
99
95
  }
100
96
 
101
97
  .ds-form-field__error-message {
102
- margin-top: ds-spacing-component(x1);
103
- padding: 0 ds-spacing-component(x3) ds-spacing-component(x3);
98
+ margin-top: ds-spacing-component($ds-sc-x1);
99
+ padding: 0 ds-spacing-component($ds-sc-x3) ds-spacing-component($ds-sc-x3);
104
100
 
105
101
  .ds-icon {
106
- margin: 0 ds-spacing-component(x2, rem) 0 ds-spacing-component(x8, rem);
102
+ margin: 0 ds-spacing-component($ds-sc-x2 0 $ds-sc-x8, rem);
107
103
  @at-root .ds-force-px#{&} {
108
- margin: ds-spacing-component(0 x2 0 x8);
104
+ margin: ds-spacing-component(0 $ds-sc-x2 0 $ds-sc-x8);
109
105
  }
110
106
  }
111
107
  }
@@ -114,11 +110,11 @@ $ds-checkbox__icon-size: 24px;
114
110
 
115
111
  .ds-checkbox--condensed {
116
112
  .ds-checkbox__inner {
117
- padding: ds-spacing-component(x1);
113
+ padding: ds-spacing-component($ds-sc-x1);
118
114
  }
119
115
  &.ds-form-field__error .ds-form-field__error-message,
120
116
  .invalid .ds-form-field__error-message {
121
- padding: 0 ds-spacing-component(x1) ds-spacing-component(x1);
117
+ padding: 0 ds-spacing-component($ds-sc-x1) ds-spacing-component($ds-sc-x1);
122
118
  }
123
119
  }
124
120
 
@@ -5,24 +5,25 @@ $ds-disclaimer__icon-size: 20px;
5
5
  $ds-btn-outlined__border-width: ds-metrics-border-width(x1);
6
6
 
7
7
  .ds-disclaimer {
8
- padding: ds-spacing-component(x3 x4);
9
- margin-bottom: ds-spacing-component(x4);
10
- background-color: $ds-color-surface-raised;
8
+ @include ds-spacing-layout($ds-sl-gap-vertical-static-medium, padding-bottom);
11
9
  box-sizing: border-box;
12
10
 
13
- &--with-icon {
14
- display: flex;
15
- flex-direction: row;
11
+ .ds-disclaimer__body-html,
12
+ .ds-disclaimer__icon-wrapper {
13
+ background-color: $ds-color-surface-raised;
14
+ padding: ds-spacing-component($ds-sc-x3 $ds-sc-x4);
16
15
  }
17
16
 
18
17
  .ds-disclaimer__icon-wrapper {
19
- margin-right: ds-spacing-component(x2);
18
+ // instead of margin to keep background color
19
+ padding-right: ds-spacing-component($ds-sc-x2);
20
20
  }
21
21
 
22
22
  .ds-disclaimer__body-html {
23
23
  @include ds-typography($ds-typography-functional-body01regular);
24
24
  margin: 0;
25
25
  color: $ds-color-text-primary-02;
26
+ flex-grow: 1;
26
27
 
27
28
  @at-root .ds-force-px#{&} {
28
29
  @include ds-typography($ds-typography-functional-body01regular, true);
@@ -31,12 +32,12 @@ $ds-btn-outlined__border-width: ds-metrics-border-width(x1);
31
32
  a {
32
33
  @include ds-link($ds-link-paragraph);
33
34
  }
34
-
35
+ b,
35
36
  strong {
36
- @include ds-typography($ds-typography-functional-body01medium);
37
+ @include ds-typography($ds-typography-functional-body01semibold);
37
38
  color: $ds-color-text-primary;
38
39
  @at-root .ds-force-px#{&} {
39
- @include ds-typography($ds-typography-functional-body01medium, true);
40
+ @include ds-typography($ds-typography-functional-body01semibold, true);
40
41
  }
41
42
  }
42
43
  }
@@ -57,11 +58,24 @@ $ds-btn-outlined__border-width: ds-metrics-border-width(x1);
57
58
  }
58
59
  }
59
60
 
60
- &--native {
61
- background-color: $ds-color-static-ad-yellow;
61
+ &.ds-disclaimer--with-icon {
62
+ display: flex;
63
+ flex-direction: row;
64
+
65
+ .ds-disclaimer__body-html {
66
+ padding-left: 0;
67
+ }
68
+ }
69
+
70
+ &.ds-disclaimer--native {
71
+ .ds-disclaimer__body-html,
72
+ .ds-disclaimer__icon-wrapper {
73
+ background-color: $ds-color-static-ad-yellow;
74
+ }
62
75
 
63
76
  .ds-icon,
64
77
  .ds-disclaimer__body-html,
78
+ .ds-disclaimer__body-html b,
65
79
  .ds-disclaimer__body-html strong {
66
80
  color: $ds-color-static-black;
67
81
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  .ds-divider {
4
4
  margin: 0;
5
- @include ds-spacing-layout(gap-vertical-static-medium 0);
5
+ @include ds-spacing-layout($ds-sl-gap-vertical-static-medium 0);
6
6
 
7
7
  hr {
8
8
  margin: 0 auto;
@@ -3,7 +3,8 @@
3
3
 
4
4
  $ds-factbox__grade-size: 40px + (ds-metrics-border-width(x2) * 2);
5
5
  $ds-factbox__show-more-fade-height: 48px;
6
- $ds-factbox__padding: ds-spacing-component(x4);
6
+ $ds-factbox__padding: ds-spacing-component($ds-sc-x4);
7
+ /* stylelint-disable-next-line */
7
8
  $ds-factbox__padding-left: $ds-factbox__padding - ds-metrics-border-width(x2);
8
9
  $ds-factbox__max-height: 500px; // includes top/bottom spacing
9
10
 
@@ -12,7 +13,7 @@ $ds-factbox__max-height: 500px; // includes top/bottom spacing
12
13
  box-sizing: border-box;
13
14
  margin: 0;
14
15
  @include ds-spacing-layout(
15
- gap-vertical-static-medium 0 gap-vertical-static-large
16
+ $ds-sl-gap-vertical-static-medium 0 $ds-sl-gap-vertical-static-large
16
17
  );
17
18
 
18
19
  .ds-factbox__inner {
@@ -43,7 +44,7 @@ $ds-factbox__max-height: 500px; // includes top/bottom spacing
43
44
  @include ds-typography($ds-typography-functional-body02regular, true);
44
45
  }
45
46
  p {
46
- margin: 0 0 ds-spacing-component(x4);
47
+ margin: 0 0 ds-spacing-component($ds-sc-x4);
47
48
  }
48
49
  p:last-child {
49
50
  margin-bottom: 0;
@@ -51,10 +52,11 @@ $ds-factbox__max-height: 500px; // includes top/bottom spacing
51
52
  a {
52
53
  @include ds-link($ds-link-article-body);
53
54
  }
55
+ b,
54
56
  strong {
55
- @include ds-typography($ds-typography-functional-body02medium);
57
+ @include ds-typography($ds-typography-functional-body02semibold);
56
58
  @at-root .ds-force-px#{&} {
57
- @include ds-typography($ds-typography-functional-body02medium, true);
59
+ @include ds-typography($ds-typography-functional-body02semibold, true);
58
60
  }
59
61
  }
60
62
  img {
@@ -64,18 +66,18 @@ $ds-factbox__max-height: 500px; // includes top/bottom spacing
64
66
  .ds-factbox__title {
65
67
  @include ds-typography($ds-typography-functional-heading01bold);
66
68
  color: $ds-color-text-primary;
67
- margin: 0 0 ds-spacing-component(x4);
69
+ margin: 0 0 ds-spacing-component($ds-sc-x4);
68
70
  @at-root .ds-force-px#{&} {
69
71
  @include ds-typography($ds-typography-functional-heading01bold, true);
70
72
  }
71
73
  }
72
74
  .ds-factbox__vignette {
73
75
  color: $ds-color-component-brand;
74
- margin-right: ds-spacing-component(x1);
76
+ margin-right: ds-spacing-component($ds-sc-x1);
75
77
  }
76
78
  .ds-factbox__grade {
77
79
  color: $ds-color-icon-primary;
78
- margin: 0 0 ds-spacing-component(x4);
80
+ margin: 0 0 ds-spacing-component($ds-sc-x4);
79
81
 
80
82
  .ds-icon {
81
83
  display: block;
@@ -111,7 +113,7 @@ $ds-factbox__max-height: 500px; // includes top/bottom spacing
111
113
  .ds-factbox__show-more--collapsable {
112
114
  background-color: $ds-color-surface-background;
113
115
  button {
114
- margin: ds-spacing-component(x4 0 0);
116
+ margin: ds-spacing-component($ds-sc-x4 0 0);
115
117
  }
116
118
  &,
117
119
  &:not([data-factbox-expanded]) .ds-factbox__expand-more,
@@ -1,28 +1,22 @@
1
- @use "../../foundations/helpers/spacing.scss" as *;
2
- @use "../../foundations/helpers/typography.scss" as *;
3
- @use "../../foundations/helpers/mediaQueries.scss" as *;
4
- @use "../../foundations/helpers/metrics.scss" as *;
5
- @use "../../foundations/helpers/utilities.scss" as *;
6
- @use "../../foundations/helpers/colors.scss" as *;
7
- @use "../../foundations/helpers/links.scss" as *;
8
-
9
- $ds-footer-row-gap-spacing-token: x8;
10
- $ds-footer-row-padding-spacing-token: x4;
11
- $ds-footer-column-gap: ds-spacing-component(x8) * 2; // @todo change to token when available
1
+ @use "../../foundations/helpers/forward.helpers.scss" as *;
2
+
3
+ $ds-footer-row-gap-spacing-token: $ds-sc-x8;
4
+ $ds-footer-row-padding-spacing-token: $ds-sc-x4;
5
+ $ds-footer-column-gap: ds-spacing-component($ds-sc-x8) * 2; // @todo change to token when available
12
6
 
13
7
  .ds-footer {
14
8
  background-color: $ds-color-static-black;
15
9
 
16
10
  &__inner {
17
11
  color: $ds-color-static-white;
18
- padding: ds-spacing-component(x8 x4);
12
+ padding: ds-spacing-component($ds-sc-x8 $ds-sc-x4);
19
13
  display: grid;
20
14
  margin: 0 auto;
21
15
  }
22
16
 
23
17
  @include ds-mq-smallest-breakpoint(tablet) {
24
18
  &__inner {
25
- padding: ds-spacing-component(x5) * 4; // @todo change to token when available
19
+ padding: ds-spacing-component($ds-sc-x5) * 4; // @todo change to token when available
26
20
  }
27
21
  }
28
22
 
@@ -83,7 +77,7 @@ $ds-footer-column-gap: ds-spacing-component(x8) * 2; // @todo change to token wh
83
77
 
84
78
  img {
85
79
  min-width: 64px;
86
- margin: ds-spacing-component(0 x4 0 0);
80
+ margin: ds-spacing-component(0 $ds-sc-x4 0 0);
87
81
  }
88
82
  }
89
83
 
@@ -95,7 +89,7 @@ $ds-footer-column-gap: ds-spacing-component(x8) * 2; // @todo change to token wh
95
89
 
96
90
  @include ds-mq-smallest-breakpoint(tablet) {
97
91
  grid-template-columns: repeat(3, auto);
98
- grid-column-gap: ds-spacing-component(x4);
92
+ grid-column-gap: ds-spacing-component($ds-sc-x4);
99
93
  }
100
94
 
101
95
  @include ds-mq-smallest-breakpoint(desktop) {
@@ -105,7 +99,7 @@ $ds-footer-column-gap: ds-spacing-component(x8) * 2; // @todo change to token wh
105
99
 
106
100
  h2 {
107
101
  @include ds-typography($ds-typography-functional-body02bold);
108
- margin: ds-spacing-component(0 0 x4);
102
+ margin: ds-spacing-component(0 0 $ds-sc-x4);
109
103
  }
110
104
 
111
105
  ul {
@@ -115,7 +109,7 @@ $ds-footer-column-gap: ds-spacing-component(x8) * 2; // @todo change to token wh
115
109
  padding: 0;
116
110
 
117
111
  li:not(:last-of-type) {
118
- margin: 0 0 ds-spacing-component(x2);
112
+ margin: 0 0 ds-spacing-component($ds-sc-x2);
119
113
  }
120
114
 
121
115
  a {
@@ -133,12 +127,12 @@ $ds-footer-column-gap: ds-spacing-component(x8) * 2; // @todo change to token wh
133
127
  margin-top: ds-spacing-component($ds-footer-row-gap-spacing-token);
134
128
 
135
129
  a {
136
- @include ds-link();
137
- margin: ds-spacing-component(x4 x4 0 0);
130
+ @include ds-link($ds-link-list);
131
+ margin: ds-spacing-component($ds-sc-x4 $ds-sc-x4 0 0);
138
132
  display: inline-block;
139
133
 
140
134
  @include ds-mq-smallest-breakpoint(tablet) {
141
- margin: ds-spacing-component(x4 x6 0 0);
135
+ margin: ds-spacing-component($ds-sc-x4 $ds-sc-x6 0 0);
142
136
  }
143
137
 
144
138
  &:last-of-type {
@@ -29,7 +29,7 @@ $ds-btn-outlined__border-width: ds-metrics-border-width(x1);
29
29
  align-items: center;
30
30
  justify-content: center;
31
31
  position: relative;
32
- padding: ds-spacing-component(x2)-$ds-btn-outlined__border-width;
32
+ padding: ds-spacing-component($ds-sc-x2)-$ds-btn-outlined__border-width;
33
33
 
34
34
  &::before {
35
35
  content: "";
@@ -67,11 +67,11 @@ $ds-btn-outlined__border-width: ds-metrics-border-width(x1);
67
67
  }
68
68
 
69
69
  &.ds-icon-btn--small .ds-icon-btn__inner {
70
- padding: ds-spacing-component(x1)-$ds-btn-outlined__border-width;
70
+ padding: ds-spacing-component($ds-sc-x1)-$ds-btn-outlined__border-width;
71
71
  }
72
72
 
73
73
  &.ds-icon-btn--large .ds-icon-btn__inner {
74
- padding: ds-spacing-component(x3)-$ds-btn-outlined__border-width;
74
+ padding: ds-spacing-component($ds-sc-x3)-$ds-btn-outlined__border-width;
75
75
  }
76
76
 
77
77
  &:focus-visible {
@@ -29,7 +29,7 @@ $ds-btn-toggle-outlined__border-width: ds-metrics-border-width(x1);
29
29
  align-items: center;
30
30
  justify-content: center;
31
31
  position: relative;
32
- padding: ds-spacing-component(x2)-$ds-btn-toggle-outlined__border-width;
32
+ padding: ds-spacing-component($ds-sc-x2)-$ds-btn-toggle-outlined__border-width;
33
33
 
34
34
  .ds-icon-btn-toggle__on {
35
35
  display: none;
@@ -71,11 +71,11 @@ $ds-btn-toggle-outlined__border-width: ds-metrics-border-width(x1);
71
71
  }
72
72
 
73
73
  &.ds-icon-btn-toggle--small .ds-icon-btn-toggle__inner {
74
- padding: ds-spacing-component(x1)-$ds-btn-toggle-outlined__border-width;
74
+ padding: ds-spacing-component($ds-sc-x1)-$ds-btn-toggle-outlined__border-width;
75
75
  }
76
76
 
77
77
  &.ds-icon-btn-toggle--large .ds-icon-btn-toggle__inner {
78
- padding: ds-spacing-component(x3)-$ds-btn-toggle-outlined__border-width;
78
+ padding: ds-spacing-component($ds-sc-x3)-$ds-btn-toggle-outlined__border-width;
79
79
  }
80
80
 
81
81
  &:focus-visible {