Skip to content

Commit c8e8e44

Browse files
updating underline decor to new palette decoration
1 parent d73ae88 commit c8e8e44

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

dotcom-rendering/src/components/ProductCarouselCard.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const brandAndProductName = css`
3535
const readMoreCta = css`
3636
${textSansBold15};
3737
text-decoration-line: underline;
38-
text-decoration-color: #dcdcdc; /* stylelint-disable-line */
38+
text-decoration-color: ${palette('--product-card-read-more-decoration')};
3939
color: ${palette('--product-card-read-more')};
4040
text-underline-offset: 20%;
4141
padding-bottom: ${space[2]}px;
@@ -102,25 +102,21 @@ export const ProductCarouselCard = ({
102102
)}
103103
<div css={readMoreCta}>Read more</div>
104104
<div css={imageArea}>
105-
<ProductCardImage
106-
format={format}
107-
image={product.image}
108-
url={undefined}
109-
/>
105+
<ProductCardImage format={format} image={product.image} />
110106
</div>
111107
{!hasHeading && (
112108
<div>
113109
<div css={brandAndProductName}>{product.brandName}</div>
114110
<div css={productNameStyle}>{product.productName}</div>
115111
</div>
116112
)}
117-
<div css={priceStyle}>{firstCta?.price ?? 'Price unavailable'}</div>
113+
<div css={priceStyle}>{firstCta?.price}</div>
118114

119115
<div css={buttonWrapper}>
120116
<ProductCardButtons
121117
productCtas={firstCta ? [firstCta] : []}
122118
buttonLabelOverride={
123-
firstCta ? `Buy at ${firstCta.retailer}` : 'Buy'
119+
firstCta ? `Buy at ${firstCta.retailer}` : undefined
124120
}
125121
/>
126122
</div>

dotcom-rendering/src/paletteDeclarations.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7557,6 +7557,10 @@ const paletteColours = {
75577557
light: productCardReadMoreLight,
75587558
dark: productCardReadMoreDark,
75597559
},
7560+
'--product-card-read-more-decoration': {
7561+
light: productCardBorderNeutralLight,
7562+
dark: productCardBorderNeutralLight,
7563+
},
75607564
'--pullquote-background': {
75617565
light: pullQuoteBackgroundLight,
75627566
dark: pullQuoteBackgroundDark,

0 commit comments

Comments
 (0)