-
Notifications
You must be signed in to change notification settings - Fork 30
Draft - Add product carousel #14968
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Draft - Add product carousel #14968
Conversation
- 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[] = [ |
There was a problem hiding this comment.
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
| const generateCarouselColumnStyles = ( | ||
| totalCards: number, | ||
| visibleCarouselSlidesOnMobile: number, | ||
| visibleCarouselSlidesOnTablet: number, | ||
| ) => { | ||
| fixedCardWidthOverrides?: FixedWidthOverride[], | ||
| ): SerializedStyles[] | SerializedStyles => { |
There was a problem hiding this comment.
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.
What does this change?
Why?
Screenshots