-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
Next/Prev buttons not working when navigation via keyboard #7423
Closed
5 of 6 tasks
kdgraham3 opened this issue
Mar 27, 2024
· 4 comments
· Fixed by Mapuppy09/tradetrust-website#8 · 4 remaining pull requests
Closed
5 of 6 tasks
Next/Prev buttons not working when navigation via keyboard #7423
kdgraham3 opened this issue
Mar 27, 2024
· 4 comments
· Fixed by Mapuppy09/tradetrust-website#8 · 4 remaining pull requests
Labels
t0ggles
Linked to the t0ggles task
Comments
t0ggles-create swiper |
Task nolimits4web/SWIPER-82 was created |
Task nolimits4web/SWIPER-82 status changed to Done |
Kind of related to this issue: I'm wondering why the div-element is used (as "recommended" in the docs) for the navigation buttons instead of the button-element? Wouldn't it be semantically correct to use the button-element? It may be beneficial for accessibility. |
This was referenced Jun 3, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Check that this is really a bug
Reproduction link
https://codesandbox.io/p/sandbox/swiper-navigation-forked-yw4g5x?file=%2Findex.html
Bug description
Next/Prev navigation buttons (.swiper-button-prev and swiper-button-next) don't work when keyboard is used to navigate. This is needed to navigate the swiper carousel for Accessibility - currently keyboard/assistive tech users can't access the carousel.
To replicate, go to the Reproduction link (this is direct fork of navigation demo, no adjustments), use keyboard "tab" key to focus swiper arrow, once in focus press keyboard "Enter/Return" key.
Affected code is shown here:
Small tweak to code fixes the issue...
Expected Behavior
Pressing Enter key when next/prev arrows are in focus should trigger the carousel to slide.
Actual Behavior
Pressing Enter key when next/prev arrows are in focus does nothing.
Swiper version
11.0.7
Platform/Target and Browser Versions
MacOS Chrome 122.0.6261.139
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: