Skip to content
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

Added Fix for using tab to slide through the carousel list #252

Merged
merged 2 commits into from May 20, 2021

Conversation

tegaadigu
Copy link
Contributor

@tegaadigu tegaadigu commented May 11, 2021

This PR aims to fix the accessibility issue raised in #233 (comment) and #242

Summary:

Describe the bug
Hello, thank you for such a great library, it helps me a lot, but recently I have stumbled upon the following bug. The carousel arrows do not get updated when navigating the carousel with keyboard focus - TAB.

To Reproduce
Steps to reproduce the behaviour:

Go to https://w3js.com/react-multi-carousel
After the example loads, click on the first carousel item
Press TAB multiple times on the keyboard to change focus to the next carousel items.
See how the arrows on the carousel stay at the same place despite the carousel being moved to another item.
Expected behaviour
The position of arrows should be updated.

Fix

This fix also limits Arrow key control which tends to move all Carousel present in a given page to only active / selected carousel. See Gif below for working fix

ezgif-3-29728a93b08e

@YIZHUANG
Copy link
Owner

YIZHUANG commented May 11, 2021

Looks good, remind me to test it and merge it

@tegaadigu
Copy link
Contributor Author

@YIZHUANG Reminder to test and merge this fix.

@tegaadigu
Copy link
Contributor Author

@YIZHUANG Merge & Test reminder

@tegaadigu
Copy link
Contributor Author

@YIZHUANG Reminder to test and merge

@rsstdd
Copy link

rsstdd commented May 19, 2021

Hello, @YIZHUANG!

I'd be very interested in a fix for this issue. Is there anything I might do to help get this merged in?

Thanks!

@YIZHUANG YIZHUANG merged commit c4d5f68 into YIZHUANG:master May 20, 2021
@YIZHUANG
Copy link
Owner

It's published at 2.6.3

@YIZHUANG
Copy link
Owner

@all-contributors please add @tegaadigu for code

@allcontributors
Copy link
Contributor

@YIZHUANG

I've put up a pull request to add @tegaadigu! 🎉

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.

None yet

3 participants