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

Toggles are not focusable or switchable from the keyboard #56

Open
PatrickStephansen opened this issue Mar 10, 2021 · 5 comments
Open

Comments

@PatrickStephansen
Copy link

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.

@palcarazm
Copy link

Hi @PatrickStephansen,

I've released a new version for bootstrap 4 and bootstrap 5 in palcarazm/bootstrap5-toggle that support toggle focus and switch from keyboard.

@PatrickStephansen
Copy link
Author

Hi @PatrickStephansen,

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.

@manolitooo
Copy link

Hi @PatrickStephansen,
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.

@palcarazm
Copy link

Hi @PatrickStephansen,
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:

  • v4.X.X support Bootstrap 5
  • v3.X.X support Bootstrap 4

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>

@manolitooo
Copy link

Oh, I see. I missed this table, which is very clear:

image

Thank you!

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

No branches or pull requests

3 participants