4 ms·
I suspect one reason why toggle switches became widespread, aside from touch interface cargo-culting, is that in contexts like the iOS Settings app, they can fi
by layer8 4y ago
I suspect one reason why toggle switches became widespread, aside from touch interface cargo-culting, is that in contexts like the iOS Settings app, they can fit the pattern of label-on-the-left, control-on-the-right, whereas checkboxes (and radio buttons) need to be on the left of the label, unlike other controls. (Or on the right for RTL languages, I suppose.) Checkboxes can thus require a little more consideration in how to layout a dialog.
I still believe that checkboxes are the better control, because they can be toggled with a single click/tap without having the conceptual disconnect that a physical sliding toggle implies that you would need to drag it across, and because the checkbox state is visually unambiguous regardless of coloring (and 1/0 labelling).
With checkboxes, there is also the general convention that clicking on the label (and anywhere between the checkbox and the label) toggles the checkbox, meaning a larger click target (this is one thing that <label for=…> achieves in HTML, by the way), whereas for sliding toggles this is not a common convention, making them less convenient to use with a pointing device.
Another benefit of checkboxes is that the label is always directly adjacent to the checkbox, meaning you don’t need any extra visual aids (horizontal lines, more vertical whitespace) to prevent confusion about which control goes with which label, which can be an issue when there’s a lot of horizontal whitespace between label and control in a list of controls.
- SketchySeaBeast 4y ago> checkboxes (and radio buttons) need to be on the left of the label Does it though? What about a checkbox makes it NEED to be on the left?
- zestyping 4y agoEnglish text aligns on the left. So the checkboxes need to be on the left to be close to the text. If checkboxes are on the right, they are either far away from the text or (I shudder to imagine) horizontally misaligned.
- SketchySeaBeast 4y agoWhile that does make sense, a grid layout helps solve some of that - though it could be hard to keep track of what checkbox belongs to what row. I'm not arguing that we switch up where checkboxes go, I'm just asking if our assumptions are as valid as we think they are.
- layer8 4y agoIt’s a convention taken over from paper forms, and the reason is likely the adjacency benefit I mentioned. Consider the analogous radio buttons, which work like a bullet list in terms of layout. A bullet list with the bullets on the right would be weird (in LTR languages). Also compare with todo lists (todo apps), or selecting items from a listing. The check control is always on the left. For example in iOS Mail: https://support.apple.com/en-us/HT208661 https://support.apple.com/en-us/HT208661 Or checklists in iOS Notes: https://support.apple.com/en-us/HT209365 https://support.apple.com/en-us/HT209365 Furthermore, checkboxes can have subordinate controls, like in this example: https://learn.microsoft.com/en-us/windows/win32/uxguide/images/ctrl-check-boxes-image19.png https://learn.microsoft.com/en-us/windows/win32/uxguide/imag... Having the checkbox at the beginning of what is enabled/disabled just makes sense, similar to how in an `if` statement you have the condition at the beginning instead of at the end.
- sfoley 4y agoThat's not what the word "need" means.
- roldie 4y agoAs a designer, this is 100% correct. I blame Apple and iOS for using toggles/switches instead of checkboxes. And I blame all the people out there who blindly follow whatever Apple does for continuing the trend. As someone else in this thread mentioned, checkboxes are more of yes or no, and usually have a save button to confirm the setting. Whereas toggles are meant to be on or off with immediate effect. It's so frustrating to have to spend so much time and energy arguing this. I've even worked at a place where an entire feature of yes/no settings to which the user must agree was named "toggles" because of all the toggles in that flow, even though they're supposed to be checkboxes. The old adage of no one ever got fired for buying IBM could be replaced by no one ever got fired for copying Apple. It's hard pushing back against that kind of momentum
- dragonwriter 4y ago> whereas checkboxes (and radio buttons) need to be on the left of the label, unlike other controls. They don't, though.