Use CallToActionAtomBlockElement in Hosted Content#15521
Merged
Conversation
CallToActionAtomBlockElement in Hosted Content
617f238 to
b3358f4
Compare
b3358f4 to
79a77e9
Compare
|
Hello 👋! When you're ready to run Chromatic, please apply the You will need to reapply the label each time you want to run Chromatic. |
cemms1
reviewed
Mar 12, 2026
cemms1
approved these changes
Mar 16, 2026
7de6017 to
5034238
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this change?
This PR is to use the
CallToActionAtomBlockElementin 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:
CallToActionAtomBlockElementdata to thehostedArticle.tsandhostedVideo.tsmanual fixtures so it could be rendered in storybook.The next step in the CTA work is to use the
accentColourfor 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.