-
Notifications
You must be signed in to change notification settings - Fork 67
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
Toggles are not focusable or switchable from the keyboard #56
Comments
I've released a new version for bootstrap 4 and bootstrap 5 in palcarazm/bootstrap5-toggle that support toggle focus and switch from keyboard. |
Great! Thank you. |
Hi @PatrickStephansen, I have seen you commited changes in Bootstrap 5 project regarding this. But I am not able to find the same for Bootstrap 4's (where this current issue is). The same for other issues where you say you released a new version recently. Or is it just that Bootstrap 5 release is also backward-compatible with Bootstrap 4? Sorry my first time in GitHub, it is possible I am missing somewhere. Thanks in advance. |
Hi @manolitooo, in palcarazm/bootstrap5-toggle there're 2 version in maintenance:
The last release for bootstrap 4 is v3.7.1. The jQuery interface CDN is <link href="https://cdn.jsdelivr.net/npm/[email protected]/css/bootstrap5-toggle.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/js/bootstrap5-toggle.min.js"></script> |
When filling in a basic HTML form, some users prefer to use only the keyboard, tabbing through the fields and entering values. Normal checkboxes can be toggled by hitting space when they're in focus.
The toggle elements in this project don't set tab index, so they're not focusable from the keyboard. They would need styling to show when they're focused, and key events should be forwarded to the hidden checkbox element.
The text was updated successfully, but these errors were encountered: