Skip to content

Commit 8c598f2

Browse files
committed
update card headline style
1 parent 08f96a2 commit 8c598f2

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

dotcom-rendering/src/components/CardHeadline.tsx

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -236,23 +236,11 @@ export const CardHeadline = ({
236236
kickerColour = palette('--card-kicker-text'),
237237
quoteColour = palette('--card-quote-icon'),
238238
kickerImage,
239-
showLabsRedesign = true,
239+
showLabsRedesign,
240240
}: Props) => {
241241
// The link is only applied directly to the headline if it is a sublink
242242
const isSublink = !!linkTo;
243-
const fontStyles = getFonts(format, fontSizes, showLabsRedesign);
244-
console.log('TEST DCR LOCAL');
245-
if (showLabsRedesign && format.theme === ArticleSpecial.Labs) {
246-
console.log(`showLabsRedesign ${showLabsRedesign}`);
247-
// New Labs styling
248-
}
249-
if (showLabsRedesign) {
250-
console.log(`showLabsRedesign2 ${showLabsRedesign}`);
251-
// New Labs styling
252-
}
253-
console.log('CardHeadline render count:', Math.random()); // Unique identifier per render
254-
console.log('Format theme:', format.theme);
255-
console.log('showLabsRedesign:', showLabsRedesign);
243+
const fontStyles = getFonts(format, fontSizes, showLabsRedesign ?? false);
256244

257245
return (
258246
<WithLink linkTo={linkTo}>

dotcom-rendering/src/components/FlexibleGeneral.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ const meta = {
157157
imageLoading: 'eager',
158158
aspectRatio: '5:4',
159159
collectionId: 1,
160+
showLabsRedesign: true,
160161
},
161162
render: ({ frontSectionTitle, ...args }) => (
162163
<FrontSection

0 commit comments

Comments
 (0)