https://unsung.aresluna.org/seeing-like-a-state/ by @aresluna.org has lovely examples highlighting usability issues with toggle controls.
Is the toggle on when the circle is on the left or right? How about when the background is dark? …in a dark mode theme?
I might suggest text that says On/Off 🫣
Zach Leatherman 2525 replies 1111 likes55 reposts11 quote Original on BlueskyOriginal on MastodonAlso posted to Mastodon.
25 replies
Or a checkbox!
Wild idea!! 😅
Glad someone else beat me to it...I'm like "these are just checkboxes masquerading as a toggle switch..."
WARIA actually specs text in the toggle island 😅
And having worked on md switch I can say that toggles might actually be an anti-pattern. As in physical toggles change something immediately. Like a light bulb. On off is clear because wolf discoverability
A list of toggles as settings is nonsense
Great point! A light switch has a visual state 😅
Could push it even further, a list of physical light switches confuses everyone! And despite labels you’re still gonna click just to see what lights go on and off
But on your phone / website? You’re lucky if anything happens
At least a checkbox intuits a distance between input and reactivity
My Spotify player uses the same button for play and pause
It is not always 100% responsive
Did I press it properly? Better press it again, carefully, now I am paused.
If it had idempotent buttons one that does play, one that does pause, I could press the play button twice, safely, despite the platforms unavoidable poor performance
Basic UX that is mostly ignored by designers
@worik I am not sure I agree with this. Separate playback and pause controls, for example, would add complexity both visually and interactively – I think in this case it would be a net negative overall.
@zachleat
> Is the toggle on when the circle is on the left or right?When the toggle switch is 'on' and the language is left-to-right, the thumb is on the right. Whatever the language direction and writing mode, 'on' is 'end', 'off' is 'start'. This convention is true beyond Apple OSes.
What 'on' and 'off' mean depends on what it does and how it's labeled.
@cwilcox808 @zachleat But note how the first paragraph is wholly unnecessary when explaining checkboxes the same way.
@cwilcox808 @zachleat I don’t believe this is actually true in practice, alas – plenty of counterexamples on either side.
@cwilcox808 I don’t think this is true, either. For as long as checkboxes have been around, there have been instant, form-less checkboxes, both on Mac OS and Windows. This isn’t even something that used to work and broke. It never worked this way.
Apple just wanted a different looking checkbox for the iPhone, and most of disambiguation between checkboxes and switches since has been wishful postrationalization that has little basis in reality.
@cwilcox808 I know of many *designers* who can’t explain the difference, let alone users.
@cwilcox808 @mwichary @zachleat Honestly, that supposed rule has never even occurred to me. The main place I see switches used is those deliberately hard-to-use "privacy" popups, where they're just form elements with a submit button.
My thought process on immediate vs on-submit is more like "hmm, I can't see the Save button, so I guess I just close the window and hope it auto-saved". Half the time, I load the page back up to check.
So yeah, if you're relying on that distinction being understood, please stop and just add a small flash message saying "Saved" when I tick a checkbox.