Skip to content

Conversation

@charleycampbell
Copy link
Contributor

@charleycampbell charleycampbell commented Dec 1, 2025

First iteration of the product card which will sit in the carousel in place of the 'At a Glance' section at the top of Filter articles.
These cards will be used in the carosuel which is being built as part of this PR

Note: This is the first iteration as there may be follow up cards which tweak/add to the logic

Screenshots

Default card
image

Dark Mode Default Card
image

- initial build of the card + a storybook
- trying to ruse the product card buttons which required an override to be added as we want a different label on the button
… the page when wired up

- Additional tweaks so the card is more aligned with the Figma designs
- Added logic when there is no heading to put the product and brand name under the image on seperate lines
- Added logic to handle when the product/brand name is longer than one line and needs to wrap
- Using the ProductCardImage instead of Picture for consistency across these elements but happy to change it back again or discuss further
- Added more storybooks
@charleycampbell charleycampbell added the run_chromatic Runs chromatic when label is applied label Dec 1, 2025
@github-actions
Copy link

github-actions bot commented Dec 1, 2025

@github-actions github-actions bot removed the run_chromatic Runs chromatic when label is applied label Dec 1, 2025
@github-actions
Copy link

github-actions bot commented Dec 1, 2025

Copy link
Contributor

@oliverabrahams oliverabrahams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this is still in draft but made some changes when looking into the scrollable carousel - let me know if you want to chat about any of them

@github-actions
Copy link

github-actions bot commented Dec 5, 2025

@charleycampbell charleycampbell added the run_chromatic Runs chromatic when label is applied label Dec 10, 2025
@github-actions github-actions bot removed the run_chromatic Runs chromatic when label is applied label Dec 10, 2025
@charleycampbell charleycampbell marked this pull request as ready for review December 10, 2025 16:25
@github-actions
Copy link

Hello 👋! When you're ready to run Chromatic, please apply the run_chromatic label to this PR.

You will need to reapply the label each time you want to run Chromatic.

Click here to see the Chromatic project.

Copy link
Contributor

@oliverabrahams oliverabrahams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just left a few small comments.


export const ProductCardButtons = ({
productCtas,
buttonLabelOverride,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense to pass through a isBuyAt: boolean parameter instead which defaults to false. As this would not work for more than one button or not use this component and directly use the ProductLinkButton.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As chatted about offline we're going to use the ProductLinkButton so we don't need this change now

…ng to be one CTA in the carosuel for now and also keeps the logic simpler in the ProductCardButtons
Copy link
Contributor

@emma-imber emma-imber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome stuff!

Copy link
Contributor

@oliverabrahams oliverabrahams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - just one small tweak

@charleycampbell charleycampbell added the run_chromatic Runs chromatic when label is applied label Dec 15, 2025
@github-actions github-actions bot removed the run_chromatic Runs chromatic when label is applied label Dec 15, 2025
@charleycampbell charleycampbell merged commit 4682797 into main Dec 15, 2025
24 checks passed
@charleycampbell charleycampbell deleted the filter/carousel-card branch December 15, 2025 14:41
@gu-prout
Copy link

gu-prout bot commented Dec 15, 2025

Seen on PROD (merged by @charleycampbell 9 minutes ago) Please check your changes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants