Skip to content

Commit 1ded223

Browse files
rearranging css
1 parent 4820d6c commit 1ded223

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

dotcom-rendering/src/components/ProductCarouselCard.tsx

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,18 @@ const headingFont = css`
2727
const headingArea = css`
2828
grid-row: 1;
2929
`;
30+
const readMoreArea = css`
31+
grid-row: 2;
32+
padding-bottom: ${space[2]}px;
33+
`;
34+
const imageArea = css`
35+
padding-bottom: ${space[1]}px;
36+
grid-row: 3;
37+
img {
38+
width: 100%;
39+
height: auto;
40+
}
41+
`;
3042
const belowImageArea = css`
3143
grid-row: 4;
3244
`;
@@ -41,7 +53,6 @@ const readMoreCta = css`
4153
text-decoration-color: ${palette('--product-card-read-more-decoration')};
4254
color: ${palette('--product-card-read-more')};
4355
text-underline-offset: 20%;
44-
padding-bottom: ${space[2]}px;
4556
`;
4657

4758
const price = css`
@@ -57,19 +68,7 @@ const buttonWrapper = css`
5768
padding-bottom: ${space[4]}px;
5869
`;
5970

60-
const imageArea = css`
61-
padding-bottom: ${space[1]}px;
62-
grid-row: 3;
63-
img {
64-
width: 100%;
65-
height: auto;
66-
}
67-
`;
68-
69-
const readMoreArea = css`
70-
grid-row: 2;
71-
`;
72-
const brandAndProductNameFont = css`
71+
const brandAndProductNameStyles = css`
7372
${headlineMedium17};
7473
line-height: 1.3;
7574
`;
@@ -96,7 +95,7 @@ export const ProductCarouselCard = ({
9695
__html: product.primaryHeadingHtml,
9796
}}
9897
/>
99-
<div css={brandAndProductNameFont}>
98+
<div css={brandAndProductNameStyles}>
10099
{`${product.brandName} ${product.productName}`}
101100
</div>
102101
</>

0 commit comments

Comments
 (0)