Skip to content

Conversation

@oliverabrahams
Copy link
Contributor

What does this change?

Why?

Screenshots

Before After
before after

charleycampbell and others added 8 commits November 28, 2025 10:01
- 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
products: ProductBlockElement[];
format: ArticleFormat;
}) => {
const fixedWidthOverrides: FixedWidthOverride[] = [
Copy link
Contributor Author

@oliverabrahams oliverabrahams Dec 4, 2025

Choose a reason for hiding this comment

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

Add a default width for the card / make mobile the default here

@github-actions
Copy link

github-actions bot commented Dec 4, 2025

@oliverabrahams oliverabrahams changed the base branch from main to filter/carousel-card December 4, 2025 16:27
@oliverabrahams oliverabrahams changed the base branch from filter/carousel-card to main December 4, 2025 16:27
@oliverabrahams oliverabrahams added the run_chromatic Runs chromatic when label is applied label Dec 4, 2025
@github-actions github-actions bot removed the run_chromatic Runs chromatic when label is applied label Dec 4, 2025
@oliverabrahams oliverabrahams added the run_chromatic Runs chromatic when label is applied label Dec 4, 2025
@github-actions github-actions bot removed the run_chromatic Runs chromatic when label is applied label Dec 4, 2025
Comment on lines 180 to +185
const generateCarouselColumnStyles = (
totalCards: number,
visibleCarouselSlidesOnMobile: number,
visibleCarouselSlidesOnTablet: number,
) => {
fixedCardWidthOverrides?: FixedWidthOverride[],
): SerializedStyles[] | SerializedStyles => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Could use different functions here depending on if we are using card width or card fractions.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants