Skip to content

Commit 71485e0

Browse files
committed
Add palette value for product card top border
1 parent 26a6dc1 commit 71485e0

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

dotcom-rendering/src/components/InlineProductCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const hideFromWide = css`
7070
const showcaseCard = css`
7171
${baseCard};
7272
background-color: ${palette('--product-card-background')};
73-
border-top: 1px solid ${palette('--section-border-lifestyle')};
73+
border-top: 1px solid ${palette('--product-card-border')};
7474
`;
7575

7676
const productCard = css`

dotcom-rendering/src/components/LeftColProductCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const card = css`
3535
position: sticky;
3636
display: block;
3737
width: 220px;
38-
border-top: 1px solid ${palette('--section-border-lifestyle')};
38+
border-top: 1px solid ${palette('--product-card-border')};
3939
}
4040
img {
4141
height: 220px;

dotcom-rendering/src/paletteDeclarations.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5094,6 +5094,11 @@ const productCardBackgroundLight: PaletteFunction = () =>
50945094
const productCardBackgroundDark: PaletteFunction = () =>
50955095
sourcePalette.neutral[97];
50965096

5097+
const productCardBorderLight: PaletteFunction = () =>
5098+
sourcePalette.lifestyle[300];
5099+
const productCardBorderDark: PaletteFunction = () =>
5100+
sourcePalette.lifestyle[300];
5101+
50975102
const privacyTextRegularLight: PaletteFunction = () => sourcePalette.neutral[7];
50985103
const privacyTextDark: PaletteFunction = () => sourcePalette.neutral[86];
50995104
const witnessTitleText: PaletteFunction = ({ theme }) => {
@@ -7540,6 +7545,10 @@ const paletteColours = {
75407545
light: productCardBackgroundLight,
75417546
dark: productCardBackgroundDark,
75427547
},
7548+
'--product-card-border': {
7549+
light: productCardBorderLight,
7550+
dark: productCardBorderDark,
7551+
},
75437552
'--pullquote-background': {
75447553
light: pullQuoteBackgroundLight,
75457554
dark: pullQuoteBackgroundDark,

0 commit comments

Comments
 (0)