Skip to content

Commit

Permalink
Only show branding if article has labs theme
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmockett committed Dec 23, 2024
1 parent 02e45c9 commit cc73640
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions dotcom-rendering/src/components/Card/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 as isAMediaCard } from '../../lib/cardHelpers';
import { getZIndex } from '../../lib/getZIndex';
import { DISCUSSION_ID_DATA_ATTRIBUTE } from '../../lib/useCommentCount';
Expand Down Expand Up @@ -898,18 +902,20 @@ export const Card = ({
{showPill ? (
<>
<MediaPill />
{branding && (
<CardBranding
branding={branding}
format={format}
onwardsSource={
onwardsSource
}
containerPalette={
containerPalette
}
/>
)}
{format.theme ===
ArticleSpecial.Labs &&
branding && (
<CardBranding
branding={branding}
format={format}
onwardsSource={
onwardsSource
}
containerPalette={
containerPalette
}
/>
)}
</>
) : (
<CardFooter
Expand Down

0 comments on commit cc73640

Please sign in to comment.