From aabf03fd63ee2c3586d3f753bed7e6a72b4cd18f Mon Sep 17 00:00:00 2001 From: Frederick O'Brien Date: Thu, 3 Sep 2026 13:18:54 +0100 Subject: [PATCH 1/2] Pass customData into iframe for interactive atoms --- dotcom-rendering/src/components/InteractiveAtom.tsx | 2 +- dotcom-rendering/src/lib/unifyPageContent.tsx | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/dotcom-rendering/src/components/InteractiveAtom.tsx b/dotcom-rendering/src/components/InteractiveAtom.tsx index 65d8c280435..067a18222a7 100644 --- a/dotcom-rendering/src/components/InteractiveAtom.tsx +++ b/dotcom-rendering/src/components/InteractiveAtom.tsx @@ -53,7 +53,6 @@ export const InteractiveAtom = ({ css={[containerStyles, !!isMainMedia && fullHeightStyles]} data-atom-id={id} data-atom-type="interactive" - {...(customData ? { 'data-atom-custom-data': customData } : {})} > diff --git a/dotcom-rendering/src/lib/unifyPageContent.tsx b/dotcom-rendering/src/lib/unifyPageContent.tsx index 2f1c4499a15..da6874b4274 100644 --- a/dotcom-rendering/src/lib/unifyPageContent.tsx +++ b/dotcom-rendering/src/lib/unifyPageContent.tsx @@ -6,11 +6,13 @@ export const unifyPageContent = ({ elementJs, elementHtml, renderingTarget, + customData, }: { elementCss?: string; elementJs?: string; elementHtml?: string; renderingTarget: RenderingTarget; + customData?: string; }): string => renderToString( @@ -29,6 +31,13 @@ export const unifyPageContent = ({
)} + {!!customData && ( +