DEV Community

Discussion on: Should a button communicate the current state, the intended behavior, or both?

Collapse
 
johncip profile image
jmc

As others have said, the "problem" is that the buttons are doing double-duty. Once you're putting two things in one place, I'm not sure there's a "right" way to juggle them.

(It's a bit like mutable data structures -- when space is at a premium, the place gets prioritized over the stuff that's in it. But if you have to, you make do.)

I think this is one place where skeuomorphism make sense. If something behaves like a toggle, making it look like a switch helps get the point across.

Short of that, IMO ideally the status and the actions have separate homes. Short of that, having a hover state seems better than not having one, but it still excludes mobile and screen reader users (I think).