Skip to content
This repository was archived by the owner on Sep 1, 2021. It is now read-only.

Commit 01695a9

Browse files
authored
Merge pull request #1200 from guardian/LIVE-1837-interview-style-bugs
LIVE-1837: move interview above showcase in heirarchy
2 parents 8f207eb + 7004a67 commit 01695a9

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/components/editions/headline/index.tsx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -188,17 +188,20 @@ const getHeadlineStyles = (
188188
);
189189
}
190190

191+
// this needs to come before Display.Showcase
192+
if (format.design === Design.Interview) {
193+
return css(
194+
sharedStyles,
195+
getFontStyles('tight', 'bold'),
196+
interviewStyles,
197+
);
198+
}
199+
191200
if (format.display === Display.Showcase) {
192201
return css(sharedStyles, getFontStyles('tight', 'bold'));
193202
}
194203

195204
switch (format.design) {
196-
case Design.Interview:
197-
return css(
198-
sharedStyles,
199-
getFontStyles('tight', 'bold'),
200-
interviewStyles,
201-
);
202205
case Design.Review:
203206
return css(sharedStyles, getFontStyles('tight', 'bold'));
204207
case Design.Analysis:

0 commit comments

Comments
 (0)