From 79c0a6e0209d9c4ae5c1b00e6d42b35ff6069c69 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 | 32 +++++++++++--------
1 file changed, 19 insertions(+), 13 deletions(-)
diff --git a/dotcom-rendering/src/components/Card/Card.tsx b/dotcom-rendering/src/components/Card/Card.tsx
index 7dba535a3d..ac023c75f0 100644
--- a/dotcom-rendering/src/components/Card/Card.tsx
+++ b/dotcom-rendering/src/components/Card/Card.tsx
@@ -6,7 +6,11 @@ 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 } from '../../lib/cardHelpers';
import { getZIndex } from '../../lib/getZIndex';
import { DISCUSSION_ID_DATA_ATTRIBUTE } from '../../lib/useCommentCount';
@@ -894,18 +898,20 @@ export const Card = ({
{showPill ? (
<>
- {branding && (
-
- )}
+ {format.theme ===
+ ArticleSpecial.Labs &&
+ branding && (
+
+ )}
>
) : (