Skip to content

Conversation

@oliverabrahams
Copy link
Contributor

@oliverabrahams oliverabrahams commented Dec 17, 2025

What does this change?

Adds a Heading and navigation arrows to the product carousel.
Adds an interaction story to to the carousel storybook.

builds off this PR #14968

Screenshots

Screenshot 2025-12-17 at 12 25 21 Screenshot 2025-12-17 at 12 29 07

@oliverabrahams oliverabrahams marked this pull request as ready for review December 17, 2025 14:23
@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.

@github-actions
Copy link

github-actions bot commented Dec 17, 2025

@oliverabrahams oliverabrahams force-pushed the mob/scrollable-products branch from f20853d to a064393 Compare December 19, 2025 17:09
… carousel. and add a section for the navigation button portal to hydrate
export const ClickForwardTwiceAndBackOnce = {
play: async ({ canvas, userEvent }) => {
const user = userEvent.setup({
delay: 500, // delay between each interaction
Copy link
Contributor

Choose a reason for hiding this comment

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

Just curious why we need this delay when we have one as part of the parameters?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This delay is to leave time for the carousel to move between interactions. I thought that the delay at the top is before the first click so that the navigation buttons have time to find the element in the DOM where they are supposed to be but that may not be needed. I will do some testing to see if it works without.

@charleycampbell
Copy link
Contributor

Looks good! Have we tested this for accessibility e.g. keyboard navigation etc?

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