From c1b50b01a984bbee0e28c44066ae6c95be5822a2 Mon Sep 17 00:00:00 2001 From: James Mockett <1166188+jamesmockett@users.noreply.github.com> Date: Thu, 19 Dec 2024 14:41:44 +0000 Subject: [PATCH] Only show branding if article has labs theme --- dotcom-rendering/src/components/Card/Card.tsx | 28 ++++++++++--------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/dotcom-rendering/src/components/Card/Card.tsx b/dotcom-rendering/src/components/Card/Card.tsx index 0123afc7a1..097d68af3f 100644 --- a/dotcom-rendering/src/components/Card/Card.tsx +++ b/dotcom-rendering/src/components/Card/Card.tsx @@ -6,7 +6,7 @@ import { space, } from '@guardian/source/foundations'; import { Hide, Link, SvgCamera } from '@guardian/source/react-components'; -import { ArticleDesign, type ArticleFormat } from '../../lib/articleFormat'; +import { ArticleDesign, type ArticleFormat, ArticleSpecial } from '../../lib/articleFormat'; import { isMediaCard as isAMediaCard } from '../../lib/cardHelpers'; import { getZIndex } from '../../lib/getZIndex'; import { DISCUSSION_ID_DATA_ATTRIBUTE } from '../../lib/useCommentCount'; @@ -898,18 +898,20 @@ export const Card = ({ {showPill ? ( <> - {branding && ( - - )} + {format.theme === + ArticleSpecial.Labs && + branding && ( + + )} ) : (