Skip to content

Use CallToActionAtomBlockElement in Hosted Content#15521

Merged
deedeeh merged 7 commits intomainfrom
dina/use-call-to-action-block-element
Mar 16, 2026
Merged

Use CallToActionAtomBlockElement in Hosted Content#15521
deedeeh merged 7 commits intomainfrom
dina/use-call-to-action-block-element

Conversation

@deedeeh
Copy link
Copy Markdown
Contributor

@deedeeh deedeeh commented Mar 12, 2026

What does this change?

This PR is to use the CallToActionAtomBlockElement in Hosted Content and consume the data which should be the last piece of the puzzle to migrate the CTA atom to DCAR which is only used by the Hosted Content.

Related PRs guardian/frontend#28653 and #15483

The changes include:

  • Rendering the CTA data
  • Followed the new designs for the CTA so lots of CSS
  • Updated the story with the correct properties name
  • Added the new CallToActionAtomBlockElement data to the hostedArticle.ts and hostedVideo.ts manual fixtures so it could be rendered in storybook.
  • Added unit tests

The next step in the CTA work is to use the accentColour for the CTA button in light mode and a neutral colour in dark mode but it's better to do it in a separate PR.

Why?

This is part of the Hosted Content migration to DCAR.

Screenshots

I added screenshots with label but we can also have CTA without label, which is the heading.

Before After
before after
before2 after2
before3 after3
before4 after4
before5 after5

@deedeeh deedeeh changed the title Dina/use call to action block element Use CallToActionAtomBlockElement in Hosted Content Mar 12, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 12, 2026

@deedeeh deedeeh added the maintenance Departmental tracking: maintenance work, not a fix or a feature label Mar 12, 2026
@deedeeh deedeeh force-pushed the dina/use-call-to-action-block-element branch from 617f238 to b3358f4 Compare March 12, 2026 13:23
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 12, 2026

@deedeeh deedeeh force-pushed the dina/use-call-to-action-block-element branch from b3358f4 to 79a77e9 Compare March 12, 2026 14:24
@deedeeh deedeeh marked this pull request as ready for review March 12, 2026 14:26
@github-actions
Copy link
Copy Markdown

Hello 👋! When you're ready to run Chromatic, please apply the run_chromatic label to this PR.

You will need to reapply the label each time you want to run Chromatic.

Click here to see the Chromatic project.

Comment thread dotcom-rendering/src/components/CallToActionAtom.tsx Outdated
Comment thread dotcom-rendering/src/components/CallToActionAtom.tsx Outdated
Comment thread dotcom-rendering/src/components/CallToActionAtom.tsx Outdated
Comment thread dotcom-rendering/src/components/CallToActionAtom.tsx Outdated
Comment thread dotcom-rendering/src/components/CallToActionAtom.tsx Outdated
Comment thread dotcom-rendering/src/components/CallToActionAtom.tsx Outdated
Comment thread dotcom-rendering/src/components/CallToActionAtom.tsx Outdated
Comment thread dotcom-rendering/src/components/CallToActionAtom.tsx Outdated
Comment thread dotcom-rendering/src/layouts/HostedArticleLayout.tsx
@deedeeh deedeeh force-pushed the dina/use-call-to-action-block-element branch from 7de6017 to 5034238 Compare March 16, 2026 12:42
@deedeeh deedeeh added the run_chromatic Runs chromatic when label is applied label Mar 16, 2026
@github-actions github-actions Bot removed the run_chromatic Runs chromatic when label is applied label Mar 16, 2026
@deedeeh deedeeh merged commit 3148dfd into main Mar 16, 2026
32 checks passed
@deedeeh deedeeh deleted the dina/use-call-to-action-block-element branch March 16, 2026 13:20
@gu-prout
Copy link
Copy Markdown

gu-prout Bot commented Mar 16, 2026

Seen on PROD (merged by @deedeeh 7 minutes and 37 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

maintenance Departmental tracking: maintenance work, not a fix or a feature Seen-on-PROD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants