From f929e73a2db82a745d58ae6e03270f4ea019c36b Mon Sep 17 00:00:00 2001 From: Anna Beddow Date: Mon, 21 Oct 2024 09:30:49 +0100 Subject: [PATCH] conditionally pad trailtext (#12575) --- dotcom-rendering/src/components/Card/Card.tsx | 1 + .../src/components/Card/components/TrailTextWrapper.tsx | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/dotcom-rendering/src/components/Card/Card.tsx b/dotcom-rendering/src/components/Card/Card.tsx index b3bfdf49c8..874d19f0c0 100644 --- a/dotcom-rendering/src/components/Card/Card.tsx +++ b/dotcom-rendering/src/components/Card/Card.tsx @@ -788,6 +788,7 @@ export const Card = ({ shouldHide={isFlexSplash ? false : true} trailTextColour={trailTextColour} trailTextSize={trailTextSize} + padTop={headlinePosition === 'inner'} >
css` @@ -76,6 +81,7 @@ export const TrailTextWrapper = ({ shouldHide = true, trailTextSize = 'regular', trailTextColour = palette('--card-trail-text'), + padTop, }: Props) => { return (
{children}