From 19c945b09ff65ba613e112a6b2b5b6dc7607f0b9 Mon Sep 17 00:00:00 2001 From: Dominik Lander Date: Thu, 12 Dec 2024 09:49:57 +0000 Subject: [PATCH] Include card index in data link name --- .../src/components/BigSixOnwardsContent.tsx | 64 +++++++++++-------- 1 file changed, 36 insertions(+), 28 deletions(-) diff --git a/dotcom-rendering/src/components/BigSixOnwardsContent.tsx b/dotcom-rendering/src/components/BigSixOnwardsContent.tsx index 8e88cbad039..59b36a6b0ed 100644 --- a/dotcom-rendering/src/components/BigSixOnwardsContent.tsx +++ b/dotcom-rendering/src/components/BigSixOnwardsContent.tsx @@ -131,7 +131,7 @@ export const BigSixOnwardsContent = ({ url, discussionApiUrl }: Props) => { format={trail.format} headlineText={trail.headline} image={trail.image} - dataLinkName={`onwards-content-gallery-style ${trail.dataLinkName}`} + dataLinkName={`onwards-content-gallery-style ${trail.dataLinkName}-position-0`} discussionId={trail.discussionId} discussionApiUrl={trail.discussionApiUrl} isExternalLink={trail.isExternalLink} @@ -158,7 +158,7 @@ export const BigSixOnwardsContent = ({ url, discussionApiUrl }: Props) => { format={trail.format} headlineText={trail.headline} image={trail.image} - dataLinkName={`onwards-content-gallery-style ${trail.dataLinkName}`} + dataLinkName={`onwards-content-gallery-style ${trail.dataLinkName}-position-1`} discussionId={trail.discussionId} discussionApiUrl={trail.discussionApiUrl} isExternalLink={trail.isExternalLink} @@ -170,32 +170,40 @@ export const BigSixOnwardsContent = ({ url, discussionApiUrl }: Props) => { ))}