Add count to product carousel#15031
Merged
oliverabrahams merged 24 commits intomainfrom Jan 20, 2026
Merged
Conversation
|
Hello 👋! When you're ready to run Chromatic, please apply the You will need to reapply the label each time you want to run Chromatic. |
… subgrid, and link to the product text heading using the H2. The product element heading h2Id is added using the enhancers in dcr
…f the card using Visable slides on either mobile or tablet. Remove the css in the carousel that is front specific and put that behind the !isArticle boolean
…l carousel. There will be a future PR for carousels with 2 cards + stories
ae03857 to
1f51155
Compare
659f258 to
6930ef2
Compare
…t much more intuitive. And allows us to remove the prop isArticle
…lableProduct.importable.tsx
1f51155 to
e00530d
Compare
6930ef2 to
ad7f3b4
Compare
charleycampbell
approved these changes
Jan 16, 2026
Contributor
charleycampbell
left a comment
There was a problem hiding this comment.
Looks good to me - appreciate the comments explaining the logic!
# Conflicts: # dotcom-rendering/src/components/ScrollableProduct.importable.tsx
|
Seen on PROD (merged by @oliverabrahams 9 minutes and 3 seconds ago) Please check your changes! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this change?
Adds a count state to the product carousel which counts which card is being shown.
Adds a count component which uses a react portal to populate the count of scrolled cards.
Adds a count to scrollable products carousel up to mobile medium and then showing the navigation buttons.
Associated with these PRs #15025 #14968
Screenshots