File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
dotcom-rendering/src/components Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -24,9 +24,11 @@ export const ProductCardButtons = ({
2424 minimisePadding = { true }
2525 priority = { index === 0 ? 'primary' : 'tertiary' }
2626 fullwidth = { true }
27- data-component = { `${
28- dataComponent ?? 'product-card-button'
29- } -${ index } `}
27+ dataComponent = {
28+ dataComponent
29+ ? `${ dataComponent } -${ index + 1 } `
30+ : undefined
31+ }
3032 />
3133 ) ;
3234 } ) }
Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ export const ProductCardInline = ({
213213 < div css = { buttonWrapper } >
214214 < ProductCardButtons
215215 productCtas = { productCtas }
216- dataComponent = { 'inline-product-card-buttons ' }
216+ dataComponent = { 'inline-product-card-button ' }
217217 />
218218 </ div >
219219 { hasCustomAttributes && (
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ export const ProductCardLeftCol = ({
121121 < div css = { buttonContainer } >
122122 < ProductCardButtons
123123 productCtas = { productCtas }
124- dataComponent = { 'left-col-product-card-buttons ' }
124+ dataComponent = { 'left-col-product-card-button ' }
125125 />
126126 </ div >
127127 { customAttributes . length > 0 && (
You can’t perform that action at this time.
0 commit comments