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

Make Switch draggable #29289

Open
1 task done
thisconnect opened this issue Feb 8, 2021 · 2 comments
Open
1 task done

Make Switch draggable #29289

thisconnect opened this issue Feb 8, 2021 · 2 comments
Labels

Comments

@thisconnect
Copy link

thisconnect commented Feb 8, 2021

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

It would be a nice improvement

  • accessibility: if the switch was focusable with keyboard
  • UX: if the switch could be dragged like on iPhone

see react-switch implementation for keyboad focus and drag behavior, note: if you drag the toggle only by a bit, it won't toggle but go back. Only if you drag over 50% then it will go to the other side.

What does the proposed API look like?

no change or optionally similar to react-switch

@afc163
Copy link
Member

afc163 commented Feb 8, 2021

accessibility: if the switch was focusable with keyboard

We support using keyboad to focus now.

@thisconnect
Copy link
Author

We support using keyboad to focus now.

you are right, I didn't see it. In that case this feature request is only about the UX improvement so that "the switch could be dragged like on iPhone". I will update the description

@thisconnect thisconnect changed the title Switch you be focusable by keyboard tab and draggable Make Switch draggable Feb 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants