Skip to content

Commit 55e9d0e

Browse files
add caption to inline product card
1 parent c01a6f0 commit 55e9d0e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

dotcom-rendering/src/components/ProductElement.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export const ProductElement = ({
6969
product.displayType === 'inline-and-product-card';
7070

7171
return (
72-
<div data-spacefinder-role="nested">
72+
<div>
7373
{showContent && (
7474
<Content
7575
product={product}
@@ -88,6 +88,9 @@ export const ProductElement = ({
8888
primaryCTA={product.primaryCta}
8989
secondaryCTA={product.secondaryCta}
9090
secondaryUrl={product.secondaryProductUrl}
91+
altText={product.altText}
92+
credit={product.credit}
93+
displayCredit={product.displayCredit}
9194
statistics={product.statistics}
9295
isCardOnly={product.displayType === 'product-card-only'}
9396
/>
@@ -116,7 +119,7 @@ const Content = ({
116119
? subheadingHtml.textContent.trim().length > 0
117120
: false;
118121
return (
119-
<>
122+
<div data-spacefinder-role="nested">
120123
{isSubheading &&
121124
Array.from(subheadingHtml.childNodes).map(
122125
buildElementTree(format),
@@ -150,6 +153,6 @@ const Content = ({
150153
/>
151154
))}
152155
</div>
153-
</>
156+
</div>
154157
);
155158
};

0 commit comments

Comments
 (0)