Skip to content

Commit 3a745ad

Browse files
authored
Pass isNewsletter prop through to card footer in card (#15337)
1 parent c3e0c1d commit 3a745ad

File tree

1 file changed

+4
-3
lines changed
  • dotcom-rendering/src/components/Card

1 file changed

+4
-3
lines changed

dotcom-rendering/src/components/Card/Card.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -502,9 +502,9 @@ export const Card = ({
502502
isOnwardContent && onwardsSource === 'more-galleries';
503503

504504
/**
505-
- * Media cards have contrasting background colours. We add additional
506-
* padding to these cards to keep the text readable.
507-
- */
505+
* Media cards have contrasting background colours. We add additional
506+
* padding to these cards to keep the text readable.
507+
*/
508508
const isMediaCardOrNewsletter = isMediaCard(format) || isNewsletter;
509509

510510
const media = getMedia({
@@ -1226,6 +1226,7 @@ export const Card = ({
12261226
? mainMedia
12271227
: undefined
12281228
}
1229+
isNewsletter={isNewsletter}
12291230
/>
12301231
)}
12311232
{showLivePlayable &&

0 commit comments

Comments
 (0)