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
backpack carousel #3059
backpack carousel #3059
Conversation
Visit https://backpack.github.io/storybook-prs/3059 to see this build running in a browser. |
Co-authored-by: Ollie Curtis <8831547+olliecurtis@users.noreply.github.com>
…e.scss Co-authored-by: Ollie Curtis <8831547+olliecurtis@users.noreply.github.com>
Co-authored-by: Ollie Curtis <8831547+olliecurtis@users.noreply.github.com>
Visit https://backpack.github.io/storybook-prs/3059 to see this build running in a browser. |
Visit https://backpack.github.io/storybook-prs/3059 to see this build running in a browser. |
Visit https://backpack.github.io/storybook-prs/3059 to see this build running in a browser. |
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.
Couple of minor changes and otherwise this looks good to me
Co-authored-by: Ollie Curtis <8831547+olliecurtis@users.noreply.github.com>
Visit https://backpack.github.io/storybook-prs/3059 to see this build running in a browser. |
…into bpk-carousel
Visit https://backpack.github.io/storybook-prs/3059 to see this build running in a browser. |
Visit https://backpack.github.io/storybook-prs/3059 to see this build running in a browser. |
Visit https://backpack.github.io/storybook-prs/3059 to see this build running in a browser. |
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 going to run an A11y test to make sure that VO and TB answer as expected
<BpkCarouselImage | ||
image={images[0]} | ||
index={0} | ||
ref={(el) => { | ||
observeCycleScroll(el); | ||
observeImageChange(el); | ||
}} |
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.
I think this needs to be before the logic to map each of the images?
As it seems to always have the first selected image as the last one when it renders which is this expected behaviour?
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.
Ricci is away on AL now, but it seems to be in order for the scroll snap to create an infinite loop.
Visit https://backpack.github.io/storybook-prs/3059 to see this build running in a browser. |
Visit https://backpack.github.io/storybook-prs/3059 to see this build running in a browser. |
Completed A11y testing on this component and with a screen reader exhibits behaviour that causes focus to go through more items than available and read outs to not be as correct for users with A11y requirements |
Visit https://backpack.github.io/storybook-prs/3059 to see this build running in a browser. |
Added carousel component for mobile screens which displays images which can be swiped to move onto the next image.
Remember to include the following changes:
README.md
(If you have created a new component)README.md