From 51603e84838bd5d971feb24eda2328f74dded5f1 Mon Sep 17 00:00:00 2001 From: Frederick O'Brien Date: Wed, 26 Aug 2026 13:40:24 +0100 Subject: [PATCH 1/3] Make `customData` available to interactive atoms --- dotcom-rendering/src/components/InteractiveAtom.tsx | 3 +++ dotcom-rendering/src/components/InteractiveLayoutAtom.tsx | 3 +++ dotcom-rendering/src/frontend/schemas/feArticle.json | 3 +++ dotcom-rendering/src/lib/renderElement.tsx | 2 ++ dotcom-rendering/src/model/block-schema.json | 3 +++ dotcom-rendering/src/types/content.ts | 1 + 6 files changed, 15 insertions(+) diff --git a/dotcom-rendering/src/components/InteractiveAtom.tsx b/dotcom-rendering/src/components/InteractiveAtom.tsx index 6dc0069f206..65d8c280435 100644 --- a/dotcom-rendering/src/components/InteractiveAtom.tsx +++ b/dotcom-rendering/src/components/InteractiveAtom.tsx @@ -34,6 +34,7 @@ type InteractiveAtomType = { elementCss?: string; isMainMedia?: boolean; title: string; + customData?: string; }; export const InteractiveAtom = ({ @@ -43,6 +44,7 @@ export const InteractiveAtom = ({ elementCss, isMainMedia, title, + customData, }: InteractiveAtomType) => { const { renderingTarget } = useConfig(); @@ -51,6 +53,7 @@ export const InteractiveAtom = ({ css={[containerStyles, !!isMainMedia && fullHeightStyles]} data-atom-id={id} data-atom-type="interactive" + {...(customData ? { 'data-atom-custom-data': customData } : {})} > (
{!!elementCss && (