News for hackers. Stuff that matters.
Re:Bootstrap-switch by bbx on Sunday February 24, 2013 @06:23AM (#5273836)
Yes, I find them confusing as well. It's because the 2 options are mutually exclusive. So you have to decide to either display the current state (On or Off), or display the possible action (switching to On or Off).

It always takes me a few seconds to figure it out. In the end, I believe displaying two radio buttons is the best option here.

Re:Bootstrap-switch by patrickaljord on Sunday February 24, 2013 @06:26AM (#5273842)
There was a post on HN with a fix for that problem, I can't find it right now but maybe someone could.
Re:Bootstrap-switch by Alexx on Sunday February 24, 2013 @06:35AM (#5273859)
http://www.chrisnorstrom.com/2012/11/invention-multiple-choi...

I think that's the post you are referring to. He sums up nicely why this standard style of 'on / off' slider is a terrible UI choice.

Re:Bootstrap-switch by kennu on Sunday February 24, 2013 @07:08AM (#5273927)
I would point out that in Apple's iOS case, the sliders are always consistent in two ways:

- The slider always displays the current value. So the UI reads quite naturally: "Airplane Mode is OFF".

- The "Off" value is always without color (gray, matching the background of the UI), and the "On" value is shown with a vivid color, indicating it's active.

I never found them to be confusing in iOS myself. But consistency is very important so that you don't break the user's trust.

Re:Bootstrap-switch by aw3c2 on Sunday February 24, 2013 @06:47AM (#5273880)
They are not a terrible choice. On the contrary! They are used everywhere in iOS! Would Apple do that if it was not intuitive and perfect?
Re:Bootstrap-switch by patrickaljord on Sunday February 24, 2013 @06:55AM (#5273893)
This is a case where Apple got it wrong and everyone copied Apple anyway because Apple. Seriously though, I'm not sure Apple invented these switches but they sure helped popularize them. And yes, I do think they are terrible.
Re:Bootstrap-switch by aw3c2 on Sunday February 24, 2013 @06:59AM (#5273906)
Sorry, I made a sarcastic comment without closing the tab before posting. Not HN etiquette.
Re:Bootstrap-switch by patrickaljord on Sunday February 24, 2013 @07:49AM (#5274011)
I knew you were being sarcastic. I was just adding my agreeing comment :)
Re:Bootstrap-switch by methodin on Sunday February 24, 2013 @10:40AM (#5274553)
These things equate to literal switches by design. Has anyone used them to indicate the action to be done when pressed? If so they are clearly confusing buttons with switches. Assuming a switch would steer your right 99% of the time - the other 1% of the time you probably should just close that site's tab and never visit it again.

You cannot control that - but then again I can create a button that is just as confusing.

Re:Bootstrap-switch by Kudos on Sunday February 24, 2013 @09:00AM (#5274206)
A checkbox is a better option than two radio buttons.