Skip to content

Commit 91ceb7d

Browse files
adjust the price to push down to the bottom on mobile
1 parent 5516232 commit 91ceb7d

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

dotcom-rendering/src/components/HorizontalSummaryProductCard.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ const imageContainer = css`
3636
grid-area: image;
3737
`;
3838
const informationContainer = css`
39+
display: flex;
40+
flex-direction: column;
3941
grid-area: information;
4042
`;
4143

@@ -56,7 +58,6 @@ const readMore = css`
5658
text-decoration-color: ${palette('--product-card-read-more-decoration')};
5759
color: ${palette('--product-card-read-more')};
5860
text-underline-offset: 20%;
59-
padding-bottom: ${space[2]}px;
6061
`;
6162

6263
const productCardHeading = css`
@@ -68,7 +69,11 @@ const productNameFont = css`
6869
${headlineMedium17};
6970
`;
7071

71-
const priceFont = css`
72+
const price = css`
73+
margin-top: auto;
74+
${from.phablet} {
75+
margin-top: 0;
76+
}
7277
${textSansBold17};
7378
`;
7479

@@ -99,10 +104,10 @@ export const HorizontalSummaryProductCard = ({
99104
}}
100105
></div>
101106
<div css={productNameFont}>{product.productName}</div>
102-
<div css={priceFont}>{cardCta.price}</div>
103107
<a href={`#${product.h2Id}`} css={readMore}>
104108
Read more
105109
</a>
110+
<div css={price}>{cardCta.price}</div>
106111
</div>
107112
<div css={buttonContainer}>
108113
<ProductLinkButton

0 commit comments

Comments
 (0)