-
Notifications
You must be signed in to change notification settings - Fork 30
Add navigation arrows to product carousel. #15025
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: mob/scrollable-products
Are you sure you want to change the base?
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. |
f20853d to
a064393
Compare
… carousel. and add a section for the navigation button portal to hydrate
ae03857 to
1f51155
Compare
| export const ClickForwardTwiceAndBackOnce = { | ||
| play: async ({ canvas, userEvent }) => { | ||
| const user = userEvent.setup({ | ||
| delay: 500, // delay between each interaction |
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.
Just curious why we need this delay when we have one as part of the parameters?
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.
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.
|
Looks good! Have we tested this for accessibility e.g. keyboard navigation etc? |
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