DEV Community

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

Collapse
 
dbanty profile image
Dylan Anthony

We have this conversation over and over at work and never come to a consensus >_>. My opinion mirrors the physical world. We’re all used to controls telling us what they do. If they need to show state, there’s usually a separate indicator of some sort. Given that we all use physical controls all the time, it makes sense to try and replicate that behavior. That’s why buttons exist in UI to begin with right?

More important than that though, make sure whatever decision you make you write it down in your style guide so you can stop having the same discussion.