From eab77ae6c1fba23e3466f7efe13772b570e471a9 Mon Sep 17 00:00:00 2001 From: Anna Beddow Date: Thu, 24 Oct 2024 14:21:36 +0100 Subject: [PATCH] Increase font size if no image --- dotcom-rendering/src/components/FlexibleGeneral.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dotcom-rendering/src/components/FlexibleGeneral.tsx b/dotcom-rendering/src/components/FlexibleGeneral.tsx index 65149dc73d..9888eb7165 100644 --- a/dotcom-rendering/src/components/FlexibleGeneral.tsx +++ b/dotcom-rendering/src/components/FlexibleGeneral.tsx @@ -372,6 +372,15 @@ export const StandardCardLayout = ({ showTopBarMobile={true} // On standard cards, we only show the trail text if the trail image has been hidden trailText={!card.image ? card.trailText : undefined} + // On standard cards, we increase the headline size if the trail image has been hidden + headlineSizes={ + !card.image + ? { + desktop: 'small', + tablet: 'xsmall', + } + : undefined + } /> );