Skip to content

Only add branding to onwards content cards for labs content#15178

Merged
cemms1 merged 1 commit intomainfrom
cemms1/fix-branding-non-labs
Jan 22, 2026
Merged

Only add branding to onwards content cards for labs content#15178
cemms1 merged 1 commit intomainfrom
cemms1/fix-branding-non-labs

Conversation

@cemms1
Copy link
Copy Markdown
Contributor

@cemms1 cemms1 commented Jan 21, 2026

What does this change?

Restricts the branding on onwards content to only appear for labs content

Why?

A bug was introduced on #15039 where the Guardian Org logo was showing on an onwards media card, which looks odd amongst other cards with branding

The branding should only apply for Labs content

Screenshots

Before After
before after

@cemms1 cemms1 added fix Departmental tracking: fix run_chromatic Runs chromatic when label is applied labels Jan 21, 2026
@cemms1 cemms1 marked this pull request as ready for review January 21, 2026 17:44
@github-actions github-actions Bot removed the run_chromatic Runs chromatic when label is applied label Jan 21, 2026
@cemms1 cemms1 requested a review from a team January 21, 2026 17:47
{!!branding && isOnwardContent && (
<LabsBranding />
)}
{!!branding &&
Copy link
Copy Markdown
Contributor

@jonathonherbert jonathonherbert Jan 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checking the logic of nesting in showPill FMI — is this (edit: the branding) something we only ever want to show for isMediaCardOrNewsletter && !isGallerySecondaryOnward?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pill should only show on media / newsletter cards (representing Video/Gallery/Audio/Newsletter articles) in general.

The isGallerySecondardaryOnward represents a "secondary" level onward content component on gallery articles. This came in recently due to an upcoming redesign for gallery onwards content (started by WebEx and continued by F&C). See comment here #14894 (comment)
So apparently we explicitly don't want to show a media pill on the "related stories" onward content

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The logic in this component is super hard to follow and seems to be getting worse. I'll start a conversation thread somewhere for this!

@jonathonherbert
Copy link
Copy Markdown
Contributor

jonathonherbert commented Jan 21, 2026

@cemms1 cemms1 merged commit e7c87b3 into main Jan 22, 2026
31 of 32 checks passed
@cemms1 cemms1 deleted the cemms1/fix-branding-non-labs branch January 22, 2026 09:16
@gu-prout
Copy link
Copy Markdown

gu-prout Bot commented Jan 22, 2026

Seen on PROD (merged by @cemms1 9 minutes and 2 seconds ago) Please check your changes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Departmental tracking: fix Seen-on-PROD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants