@newskit-render/core 3.1.1-alpha.2 → 4.0.0

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 (31) hide show
  1. package/__tests__/pages/__snapshots__/[articleSlug].test.tsx.snap +69 -69
  2. package/__tests__/pages/__snapshots__/brightcove.test.tsx.snap +1 -1
  3. package/__tests__/pages/__snapshots__/home.test.tsx.snap +101 -101
  4. package/__tests__/pages/__snapshots__/relatedArticles.test.tsx.snap +31 -31
  5. package/components/ErrorPage/ErrorPage.tsx +4 -4
  6. package/components/ad/index.tsx +3 -2
  7. package/components/article/Highlights.tsx +7 -4
  8. package/components/article/RelatedArticles.tsx +5 -2
  9. package/components/article/RelatedTopics.tsx +5 -5
  10. package/components/article/__tests__/__snapshots__/index.test.tsx.snap +93 -93
  11. package/components/article/index.tsx +14 -14
  12. package/components/common/BackToHomepage.tsx +5 -4
  13. package/components/common/SectionTitleBar.tsx +1 -1
  14. package/components/common/iconNavLink/IconNavLink.tsx +1 -1
  15. package/components/footer/__snapshots__/index.test.tsx.snap +15 -15
  16. package/components/footer/index.tsx +4 -4
  17. package/components/layout/MainGrid.tsx +2 -2
  18. package/components/section/ArticleSlice.tsx +1 -1
  19. package/components/section/index.tsx +1 -1
  20. package/components/section/layouts/Rows.tsx +1 -1
  21. package/components/section/layouts/__tests__/__snapshots__/Lead.test.tsx.snap +17 -17
  22. package/components/section/layouts/__tests__/__snapshots__/SectionTitle.test.tsx.snap +14 -14
  23. package/components/teaser/index.tsx +2 -2
  24. package/components/teaser/teaserVariants.ts +2 -2
  25. package/components/teaser/variant-types.ts +2 -2
  26. package/components/teaser/variants/featureVariant.ts +2 -2
  27. package/components/teaser/variants/horizontal.ts +1 -1
  28. package/components/teaser/variants/titleTeaserVariant.ts +2 -2
  29. package/components/teaser/variants/titleVertical.ts +1 -1
  30. package/package.json +6 -6
  31. package/pages/[section]/[articleId]/relatedArticles.tsx +6 -3
@@ -128,7 +128,7 @@ const ArticlePage: React.FC<ArticleProps> = ({
128
128
  user={user}
129
129
  >
130
130
  <Cell xs={12} md={10} lg={7} xsOffset={0} mdOffset={1}>
131
- <Block spaceStack="space050" data-testid="HeadLine">
131
+ <Block marginBlockEnd="space050" data-testid="HeadLine">
132
132
  <Headline
133
133
  overrides={{
134
134
  typographyPreset: {
@@ -146,7 +146,7 @@ const ArticlePage: React.FC<ArticleProps> = ({
146
146
  {headline}
147
147
  </Headline>
148
148
  </Block>
149
- <Block spaceStack="space080" data-testid="Kicker">
149
+ <Block marginBlockEnd="space080" data-testid="Kicker">
150
150
  <Headline
151
151
  headingAs="h2"
152
152
  overrides={{
@@ -165,14 +165,14 @@ const ArticlePage: React.FC<ArticleProps> = ({
165
165
  </Headline>
166
166
  </Block>
167
167
  <Block
168
- spaceStack={{
168
+ marginBlockEnd={{
169
169
  xs: 'space040',
170
170
  md: 'space080',
171
171
  }}
172
172
  >
173
173
  <Visible xs sm>
174
174
  <Block
175
- spaceStack={{
175
+ marginBlockEnd={{
176
176
  xs: 'space040',
177
177
  }}
178
178
  >
@@ -184,13 +184,13 @@ const ArticlePage: React.FC<ArticleProps> = ({
184
184
  />
185
185
  </Block>
186
186
  <Block
187
- spaceStack={{
187
+ marginBlockEnd={{
188
188
  xs: 'space040',
189
189
  }}
190
190
  >
191
191
  <Divider />
192
192
  </Block>
193
- <Block spaceStack="space050">
193
+ <Block marginBlockEnd="space050">
194
194
  <ShareButton />
195
195
  </Block>
196
196
  </Visible>
@@ -215,7 +215,7 @@ const ArticlePage: React.FC<ArticleProps> = ({
215
215
  </Block>
216
216
  {media && 'crops' in media && (
217
217
  <Block
218
- spaceStack={{
218
+ marginBlockEnd={{
219
219
  xs: 'space060',
220
220
  lg: 'space070',
221
221
  }}
@@ -233,7 +233,7 @@ const ArticlePage: React.FC<ArticleProps> = ({
233
233
  )}
234
234
  {media && 'videoId' in media && (
235
235
  <Block
236
- spaceStack={{
236
+ marginBlockEnd={{
237
237
  xs: 'space060',
238
238
  lg: 'space070',
239
239
  }}
@@ -250,7 +250,7 @@ const ArticlePage: React.FC<ArticleProps> = ({
250
250
  </Block>
251
251
  )}
252
252
  <Block
253
- spaceStack={{
253
+ marginBlockEnd={{
254
254
  xs: 'space060',
255
255
  md: 'space080',
256
256
  lg: 'space100',
@@ -261,7 +261,7 @@ const ArticlePage: React.FC<ArticleProps> = ({
261
261
  summary.children.map((p, i) => (
262
262
  <Block
263
263
  key={i}
264
- spaceStack={{
264
+ marginBlockEnd={{
265
265
  xs: 'space050',
266
266
  lg: 'space070',
267
267
  }}
@@ -281,18 +281,18 @@ const ArticlePage: React.FC<ArticleProps> = ({
281
281
  ))}
282
282
  </Block>
283
283
  <Visible xs sm>
284
- <Block spaceStack="space050">
284
+ <Block marginBlockEnd="space050">
285
285
  <Divider />
286
286
  </Block>
287
- <Block spaceStack="space100">
287
+ <Block marginBlockEnd="space100">
288
288
  <ShareButton />
289
289
  </Block>
290
290
  </Visible>
291
291
  <Visible md lg xl>
292
- <Block spaceStack="space050">
292
+ <Block marginBlockEnd="space050">
293
293
  <Divider />
294
294
  </Block>
295
- <Block spaceStack="space100">
295
+ <Block marginBlockEnd="space100">
296
296
  <Stack
297
297
  flow="horizontal-bottom"
298
298
  stackDistribution="flex-end"
@@ -5,11 +5,11 @@ import React from 'react'
5
5
  export const BackToHomepage = () => {
6
6
  return (
7
7
  <>
8
- <Block spaceStack="space030">
8
+ <Block marginBlockEnd="space030">
9
9
  <Divider />
10
10
  </Block>
11
11
 
12
- <Block spaceStack="space030">
12
+ <Block marginBlockEnd="space030">
13
13
  <Stack flow="horizontal-center" stackDistribution="center">
14
14
  <StackChild>
15
15
  <BackButton
@@ -21,14 +21,15 @@ export const BackToHomepage = () => {
21
21
  backButtonOverrides={{
22
22
  asLink: true,
23
23
  iconSize: 'iconSize030',
24
- spaceInset: 'spaceInsetSquish010',
24
+ paddingInline: 'spaceInsetSquish010',
25
+ paddingBlock: 'spaceInsetSquish010',
25
26
  typographyPreset: 'utilityButton020',
26
27
  }}
27
28
  />
28
29
  </StackChild>
29
30
  </Stack>
30
31
  </Block>
31
- <Block spaceStack="space050">
32
+ <Block marginBlockEnd="space050">
32
33
  <Divider />
33
34
  </Block>
34
35
  </>
@@ -33,7 +33,7 @@ const SectionTitleBar: React.FC<SectionTitleBarProps> = ({
33
33
  }) => (
34
34
  <StyledTitleBarBlock
35
35
  colour={colour}
36
- spaceStack="space060"
36
+ marginBlockEnd="space060"
37
37
  data-testid="SectionTitleBar"
38
38
  >
39
39
  <TitleBar
@@ -41,7 +41,7 @@ const IconNavLink: React.FC<IconNavLinkProps> = ({
41
41
  <Divider />
42
42
  <Block
43
43
  data-testid="myBlock"
44
- spaceStack={{
44
+ marginBlockEnd={{
45
45
  xs: 'space040',
46
46
  md: 'space000',
47
47
  }}
@@ -17,7 +17,7 @@ exports[`Footer tests should render footer 1`] = `
17
17
  data-testid="PageLayout"
18
18
  >
19
19
  <div
20
- class="css-a1yn46"
20
+ class="css-2e5lv5"
21
21
  >
22
22
  <svg
23
23
  class="css-kgdu16"
@@ -44,7 +44,7 @@ exports[`Footer tests should render footer 1`] = `
44
44
  </svg>
45
45
  </div>
46
46
  <div
47
- class="css-a1yn46"
47
+ class="css-2e5lv5"
48
48
  >
49
49
  <hr
50
50
  aria-hidden="true"
@@ -56,11 +56,11 @@ exports[`Footer tests should render footer 1`] = `
56
56
  class="css-hx18jh"
57
57
  >
58
58
  <span
59
- class="css-1v0p1qz"
59
+ class="css-1cpcft7"
60
60
  >
61
61
  <a
62
62
  aria-label="NavLink One"
63
- class="css-zk8dn3"
63
+ class="css-1ulbpfm"
64
64
  href="/link-one"
65
65
  >
66
66
  <span
@@ -75,11 +75,11 @@ exports[`Footer tests should render footer 1`] = `
75
75
  </a>
76
76
  </span>
77
77
  <span
78
- class="css-1v0p1qz"
78
+ class="css-1cpcft7"
79
79
  >
80
80
  <a
81
81
  aria-label="NavLink Two"
82
- class="css-zk8dn3"
82
+ class="css-1ulbpfm"
83
83
  href="/link-two"
84
84
  >
85
85
  <span
@@ -94,11 +94,11 @@ exports[`Footer tests should render footer 1`] = `
94
94
  </a>
95
95
  </span>
96
96
  <span
97
- class="css-1v0p1qz"
97
+ class="css-1cpcft7"
98
98
  >
99
99
  <a
100
100
  aria-label="NavLink Three"
101
- class="css-zk8dn3"
101
+ class="css-1ulbpfm"
102
102
  href="/link-three"
103
103
  >
104
104
  <span
@@ -113,11 +113,11 @@ exports[`Footer tests should render footer 1`] = `
113
113
  </a>
114
114
  </span>
115
115
  <span
116
- class="css-1v0p1qz"
116
+ class="css-1cpcft7"
117
117
  >
118
118
  <a
119
119
  aria-label="NavLink Four"
120
- class="css-zk8dn3"
120
+ class="css-1ulbpfm"
121
121
  href="/link-four"
122
122
  >
123
123
  <span
@@ -132,11 +132,11 @@ exports[`Footer tests should render footer 1`] = `
132
132
  </a>
133
133
  </span>
134
134
  <span
135
- class="css-1v0p1qz"
135
+ class="css-1cpcft7"
136
136
  >
137
137
  <a
138
138
  aria-label="NavLink Five"
139
- class="css-zk8dn3"
139
+ class="css-1ulbpfm"
140
140
  href="/link-five"
141
141
  >
142
142
  <span
@@ -151,11 +151,11 @@ exports[`Footer tests should render footer 1`] = `
151
151
  </a>
152
152
  </span>
153
153
  <span
154
- class="css-1v0p1qz"
154
+ class="css-1cpcft7"
155
155
  >
156
156
  <a
157
157
  aria-label="NavLink Six"
158
- class="css-zk8dn3"
158
+ class="css-1ulbpfm"
159
159
  href="/link-six"
160
160
  >
161
161
  <span
@@ -171,7 +171,7 @@ exports[`Footer tests should render footer 1`] = `
171
171
  </span>
172
172
  </div>
173
173
  <div
174
- class="css-a1yn46"
174
+ class="css-2e5lv5"
175
175
  >
176
176
  <hr
177
177
  aria-hidden="true"
@@ -65,7 +65,7 @@ const NavButton = ({
65
65
  xs: 'space000',
66
66
  md: 'space090',
67
67
  }}
68
- spaceStack="space040"
68
+ marginBlockEnd="space040"
69
69
  >
70
70
  <NavLink href={href} ariaLabel={ariaLabel} buttonText={buttonText} />
71
71
  </Block>
@@ -77,7 +77,7 @@ const Footer = () => {
77
77
  <StyledFooter>
78
78
  <MainGrid>
79
79
  <Cell xs={12}>
80
- <Block spaceStack="space030">
80
+ <Block marginBlockEnd="space030">
81
81
  {!clientNavigationLogos[theme.name] ? (
82
82
  <NewsKitLogoShort color="white" size="sizing120" />
83
83
  ) : (
@@ -88,7 +88,7 @@ const Footer = () => {
88
88
  />
89
89
  )}
90
90
  </Block>
91
- <Block spaceStack="space030">
91
+ <Block marginBlockEnd="space030">
92
92
  <Divider
93
93
  overrides={{
94
94
  stylePreset: 'dividerFooterHorizontal',
@@ -127,7 +127,7 @@ const Footer = () => {
127
127
  ariaLabel="NavLink Six"
128
128
  />
129
129
  </Navigation>
130
- <Block spaceStack="space030">
130
+ <Block marginBlockEnd="space030">
131
131
  <Divider
132
132
  overrides={{
133
133
  stylePreset: 'dividerFooterHorizontal',
@@ -44,7 +44,7 @@ export const MainGrid: React.FC<LayoutProps> = ({
44
44
  {withTopOffset && (
45
45
  <Cell xs={12}>
46
46
  <Block
47
- spaceStack={{
47
+ marginBlockEnd={{
48
48
  xs: 'space070',
49
49
  lg: 'space080',
50
50
  }}
@@ -55,7 +55,7 @@ export const MainGrid: React.FC<LayoutProps> = ({
55
55
  {withBottomOffset && (
56
56
  <Cell xs={12}>
57
57
  <Block
58
- spaceStack={{
58
+ marginBlockEnd={{
59
59
  xs: 'space090',
60
60
  }}
61
61
  />
@@ -28,7 +28,7 @@ const sliceBlockBuilder = (slice: Slice) => {
28
28
  const ArticleSlice: React.FC<{ slice: Slice }> = ({ slice }) => (
29
29
  <>
30
30
  {sliceBlockBuilder(slice)}
31
- <Block spaceStack="space070" />
31
+ <Block marginBlockEnd="space070" />
32
32
  </>
33
33
  )
34
34
 
@@ -23,7 +23,7 @@ const SectionPage: React.FC<{
23
23
  <SectionContext.Provider value={{ isIndexPage }}>
24
24
  <Layout dataTestId="SectionGrid" gridOverride={gridOverride} user={user}>
25
25
  <Cell xs={12} md={10} mdOffset={1} data-testid="SectionCell">
26
- <Block spaceStack="space070" />
26
+ <Block marginBlockEnd="space070" />
27
27
  {isIndexPage && <SectionTitleBar title={page.title} />}
28
28
  {Array.isArray(page.body) &&
29
29
  page.body.map((block, i) =>
@@ -24,7 +24,7 @@ export const BasicRow: React.FC<LayoutProps> = ({
24
24
  {articles
25
25
  ? articles.map((article, i) => (
26
26
  <Block
27
- spaceStack="space050"
27
+ marginBlockEnd="space050"
28
28
  key={article.title}
29
29
  data-testid={`articleRec-${i}`}
30
30
  >
@@ -3,11 +3,11 @@
3
3
  exports[`Lead should render Lead 1`] = `
4
4
  <DocumentFragment>
5
5
  <div
6
- class="css-fqfgyf"
6
+ class="css-mcaqg8"
7
7
  data-testid="SUPPLEMENT_LEAD_AND_4_STACK-Grid"
8
8
  >
9
9
  <div
10
- class="css-30qa7x"
10
+ class="css-13byt3y"
11
11
  data-testid="featureVerticalCell"
12
12
  >
13
13
  <div
@@ -37,20 +37,20 @@ exports[`Lead should render Lead 1`] = `
37
37
  class="css-1shocxe"
38
38
  >
39
39
  <div
40
- class="css-u3mic"
40
+ class="css-l3wl0d"
41
41
  >
42
42
  <div
43
- class="css-7q4xyp"
43
+ class="css-8oi1su"
44
44
  >
45
45
  <a
46
- class="nk-card-link css-j3tblu"
46
+ class="nk-card-link css-1idfo06"
47
47
  href="catagory-one/demo-1/test-headline"
48
48
  >
49
49
  <section
50
50
  class="css-1jxtwhc"
51
51
  >
52
52
  <h3
53
- class="nk-headline-heading css-l6hs79"
53
+ class="nk-headline-heading css-oeq8ks"
54
54
  >
55
55
  test headline
56
56
  </h3>
@@ -62,10 +62,10 @@ exports[`Lead should render Lead 1`] = `
62
62
  </div>
63
63
  </div>
64
64
  <div
65
- class="css-19pip16"
65
+ class="css-1gjeojb"
66
66
  >
67
67
  <div
68
- class="css-30qa7x"
68
+ class="css-13byt3y"
69
69
  data-testid="titleVerticalCell-0"
70
70
  >
71
71
  <div
@@ -95,20 +95,20 @@ exports[`Lead should render Lead 1`] = `
95
95
  class="css-1r2lt0d"
96
96
  >
97
97
  <div
98
- class="css-h6wt93"
98
+ class="css-13pp6jk"
99
99
  >
100
100
  <div
101
- class="css-165k7dq"
101
+ class="css-6vc2ul"
102
102
  >
103
103
  <a
104
- class="nk-card-link css-j3tblu"
104
+ class="nk-card-link css-1idfo06"
105
105
  href="catagory-two/demo-2/test-headline-2"
106
106
  >
107
107
  <section
108
108
  class="css-4kc5mr"
109
109
  >
110
110
  <h3
111
- class="nk-headline-heading css-l6hs79"
111
+ class="nk-headline-heading css-oeq8ks"
112
112
  >
113
113
  test headline 2
114
114
  </h3>
@@ -120,7 +120,7 @@ exports[`Lead should render Lead 1`] = `
120
120
  </div>
121
121
  </div>
122
122
  <div
123
- class="css-30qa7x"
123
+ class="css-13byt3y"
124
124
  data-testid="titleVerticalCell-1"
125
125
  >
126
126
  <div
@@ -150,20 +150,20 @@ exports[`Lead should render Lead 1`] = `
150
150
  class="css-1r2lt0d"
151
151
  >
152
152
  <div
153
- class="css-h6wt93"
153
+ class="css-13pp6jk"
154
154
  >
155
155
  <div
156
- class="css-165k7dq"
156
+ class="css-6vc2ul"
157
157
  >
158
158
  <a
159
- class="nk-card-link css-j3tblu"
159
+ class="nk-card-link css-1idfo06"
160
160
  href="catagory-three/demo-3/test-headline-3"
161
161
  >
162
162
  <section
163
163
  class="css-4kc5mr"
164
164
  >
165
165
  <h3
166
- class="nk-headline-heading css-l6hs79"
166
+ class="nk-headline-heading css-oeq8ks"
167
167
  >
168
168
  test headline 3
169
169
  </h3>
@@ -3,14 +3,14 @@
3
3
  exports[`SectionTitle SectionTitle alternative titlebar 1`] = `
4
4
  <DocumentFragment>
5
5
  <div
6
- class="css-wjhscn"
6
+ class="css-1hrjdv4"
7
7
  data-testid="SectionTitleBar"
8
8
  >
9
9
  <div
10
- class="css-1en1pwn"
10
+ class="css-14v8j6o"
11
11
  >
12
12
  <div
13
- class="css-krscqv"
13
+ class="css-16bai6p"
14
14
  >
15
15
  <section
16
16
  class="css-3bvy7k"
@@ -73,14 +73,14 @@ exports[`SectionTitle SectionTitle alternative titlebar 1`] = `
73
73
  exports[`SectionTitle SectionTitle with title 1`] = `
74
74
  <DocumentFragment>
75
75
  <div
76
- class="css-ilgzgo"
76
+ class="css-1ujfthp"
77
77
  data-testid="SectionTitleBar"
78
78
  >
79
79
  <div
80
- class="css-1en1pwn"
80
+ class="css-14v8j6o"
81
81
  >
82
82
  <div
83
- class="css-krscqv"
83
+ class="css-16bai6p"
84
84
  >
85
85
  <section
86
86
  class="css-3bvy7k"
@@ -146,7 +146,7 @@ Object {
146
146
  "baseElement": <body>
147
147
  <div>
148
148
  <div
149
- class="css-1mgwmyt"
149
+ class="css-1ms0cs2"
150
150
  data-testid="addTopSpace"
151
151
  >
152
152
  <hr
@@ -156,14 +156,14 @@ Object {
156
156
  />
157
157
  </div>
158
158
  <div
159
- class="css-ilgzgo"
159
+ class="css-1ujfthp"
160
160
  data-testid="SectionTitleBar"
161
161
  >
162
162
  <div
163
- class="css-1en1pwn"
163
+ class="css-14v8j6o"
164
164
  >
165
165
  <div
166
- class="css-krscqv"
166
+ class="css-16bai6p"
167
167
  >
168
168
  <section
169
169
  class="css-3bvy7k"
@@ -224,7 +224,7 @@ Object {
224
224
  </body>,
225
225
  "container": <div>
226
226
  <div
227
- class="css-1mgwmyt"
227
+ class="css-1ms0cs2"
228
228
  data-testid="addTopSpace"
229
229
  >
230
230
  <hr
@@ -234,14 +234,14 @@ Object {
234
234
  />
235
235
  </div>
236
236
  <div
237
- class="css-ilgzgo"
237
+ class="css-1ujfthp"
238
238
  data-testid="SectionTitleBar"
239
239
  >
240
240
  <div
241
- class="css-1en1pwn"
241
+ class="css-14v8j6o"
242
242
  >
243
243
  <div
244
- class="css-krscqv"
244
+ class="css-16bai6p"
245
245
  >
246
246
  <section
247
247
  class="css-3bvy7k"
@@ -37,7 +37,7 @@ const Teaser: React.FC<TeaserProps> = ({
37
37
  )}
38
38
  overrides={presets.card}
39
39
  >
40
- <Block spaceStack={presets.title.spaceStack}>
40
+ <Block marginBlockEnd={presets.title.marginBlockEnd}>
41
41
  <Headline
42
42
  overrides={{
43
43
  typographyPreset: presets.title.typographyPreset,
@@ -48,7 +48,7 @@ const Teaser: React.FC<TeaserProps> = ({
48
48
  </Headline>
49
49
  </Block>
50
50
  {teaser && presets.teaser && (
51
- <Block spaceStack={presets.teaser.spaceStack}>
51
+ <Block marginBlockEnd={presets.teaser.marginBlockEnd}>
52
52
  <TextBlock
53
53
  stylePreset={presets.teaser.stylePreset}
54
54
  typographyPreset={presets.teaser.typographyPreset}
@@ -11,12 +11,12 @@ const base: VariantsObject = {
11
11
  title: {
12
12
  stylePreset: {},
13
13
  typographyPreset: {},
14
- spaceStack: 'space020',
14
+ marginBlockEnd: 'space020',
15
15
  },
16
16
  teaser: {
17
17
  stylePreset: {},
18
18
  typographyPreset: {},
19
- spaceStack: 'space020',
19
+ marginBlockEnd: 'space020',
20
20
  },
21
21
  }
22
22
 
@@ -15,7 +15,7 @@ export type VariantsObject = {
15
15
  xs?: string
16
16
  }
17
17
  | string
18
- spaceStack:
18
+ marginBlockEnd:
19
19
  | {
20
20
  xl?: string
21
21
  lg?: string
@@ -36,7 +36,7 @@ export type VariantsObject = {
36
36
  xs?: string
37
37
  }
38
38
  | string
39
- spaceStack?:
39
+ marginBlockEnd?:
40
40
  | {
41
41
  xl?: string
42
42
  lg?: string
@@ -20,7 +20,7 @@ const featureVertical: VariantsObject = {
20
20
  md: 'editorialHeadline070',
21
21
  xs: 'editorialHeadline040',
22
22
  },
23
- spaceStack: {
23
+ marginBlockEnd: {
24
24
  md: 'space050',
25
25
  xs: 'space045',
26
26
  },
@@ -32,7 +32,7 @@ const featureVertical: VariantsObject = {
32
32
  md: 'editorialSubheadline040',
33
33
  xs: 'editorialSubheadline020',
34
34
  },
35
- spaceStack: {
35
+ marginBlockEnd: {
36
36
  md: 'space040',
37
37
  xs: 'space030',
38
38
  },
@@ -7,7 +7,7 @@ const horizontalVariant: VariantsObject = {
7
7
  },
8
8
  title: {
9
9
  stylePreset: 'inkContrast',
10
- spaceStack: 'space020',
10
+ marginBlockEnd: 'space020',
11
11
  },
12
12
  }
13
13
 
@@ -17,7 +17,7 @@ const titleTeaserVertical: VariantsObject = {
17
17
  md: 'editorialHeadline030',
18
18
  xs: 'editorialHeadline020',
19
19
  },
20
- spaceStack: 'space045',
20
+ marginBlockEnd: 'space045',
21
21
  },
22
22
  teaser: {
23
23
  stylePreset: 'inkContrast',
@@ -25,7 +25,7 @@ const titleTeaserVertical: VariantsObject = {
25
25
  md: 'editorialParagraph020',
26
26
  xs: 'editorialParagraph010',
27
27
  },
28
- spaceStack: 'space030',
28
+ marginBlockEnd: 'space030',
29
29
  },
30
30
  }
31
31
 
@@ -17,7 +17,7 @@ const titleVertical: VariantsObject = {
17
17
  md: 'editorialHeadline050',
18
18
  xs: 'editorialHeadline040',
19
19
  },
20
- spaceStack: 'space040',
20
+ marginBlockEnd: 'space040',
21
21
  },
22
22
  }
23
23