Skip to content

Commit d73ae88

Browse files
Removing read more as a boolean so it will be on every card
1 parent bef7e41 commit d73ae88

File tree

2 files changed

+1
-20
lines changed

2 files changed

+1
-20
lines changed

dotcom-rendering/src/components/ProductCarouselCard.stories.tsx

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,6 @@ const meta = {
255255
display: ArticleDisplay.Standard,
256256
theme: Pillar.Lifestyle,
257257
},
258-
showReadMore: true,
259258
},
260259
render: (args) => (
261260
<div
@@ -274,22 +273,6 @@ type Story = StoryObj<typeof meta>;
274273

275274
export const Default = {} satisfies Story;
276275

277-
export const WithoutReadMore = {
278-
args: {
279-
showReadMore: false,
280-
},
281-
} satisfies Story;
282-
283-
export const WithoutHeadingDisclaimerOrReadMore = {
284-
args: {
285-
product: {
286-
...product,
287-
primaryHeadingHtml: '',
288-
},
289-
showReadMore: false,
290-
},
291-
} satisfies Story;
292-
293276
export const WithLongHeadingProductNameAndCTA = {
294277
args: {
295278
product: {

dotcom-rendering/src/components/ProductCarouselCard.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import { ProductCardImage } from './ProductCardImage';
1616
export type ProductCarouselCardProps = {
1717
product: ProductBlockElement;
1818
format: ArticleFormat;
19-
showReadMore?: boolean;
2019
};
2120

2221
const baseCard = css`
@@ -76,7 +75,6 @@ const productNameStyle = css`
7675
export const ProductCarouselCard = ({
7776
product,
7877
format,
79-
showReadMore,
8078
}: ProductCarouselCardProps) => {
8179
const hasHeading = !!product.primaryHeadingHtml;
8280

@@ -102,7 +100,7 @@ export const ProductCarouselCard = ({
102100
</div>
103101
</>
104102
)}
105-
{showReadMore && <div css={readMoreCta}>Read more</div>}
103+
<div css={readMoreCta}>Read more</div>
106104
<div css={imageArea}>
107105
<ProductCardImage
108106
format={format}

0 commit comments

Comments
 (0)