Open gfellerph opened 6 months ago
without rational as to why dragging was included as a way to toggle, it seems unnecessary/out of place, imo. the hit area of a switch is generally so small, that i question how often someone would even want to drag - especially if the control needs to also support click/tap. dragging is more effort (for implementation and as a user)... why even do that?
@scottaohara is the original "Swipe to Unlock" paradigm a switch, button, other?
Visually it represents a switch and I would denote that it is a bool that has an indeterminate state akin to "not lifting" on the invoking input (eg: spacebar up, mouse button up) remove focus/hit testing. That said, I don't think that the events are actually bound to that but the usecase above has either "Locked" or "Unlocked" and is using a switch to handle this.
I wouldn’t consider that a switch. I cant recall ever seeing one of those implemented as a switch.
A button or some sort of custom slider is typically what I remember seeing these implemented as. Even thr “good” ones often had a11y issues in not providing someone an alternative to sliding/dragging to activate.
This feature is rarely implemented in other Design Systems. What should the explainer recommend?
@gfellerph As you stated... it's something so rare. I personally never had the intention to swipe these kind of controls. I haven't seen it as well. I think it's safe to say that most authors won't have a need for it and those that do, will probably want to create such a custom action that it requires some extra scripting anyway.
The Open UI Community Group just discussed [switch] Should the switch element support swipe actions?
, and agreed to the following:
RESOLVED: Switch should support gesture support akin to the range control; normative text to be defined at a later point
The Switch in iOS is draggable, which I think is a very desirable interaction.
Fwiw the switch on android is draggable too. I think it feels semi natural for a touch input. I'd probably find it odd if it was with a mouse though?
A question that came up while doing research on the switch element. In the Material 3 Switch Accessibility documentation, it's stated that a dragging movement should toggle the switch. This feature is rarely implemented in other Design Systems. What should the explainer recommend?