Section 2.6 says this:
Important: the label on a toggle button should never change when the state changes. In this example, when the pressed state is true, the label should not change to "Unmute"" or "Muted."
I understand that it is the "state" that is changing, but what is wrong with toggling between mute and unmute on the label, instead of having a button that says something like "mute, pressed"? I think a label swap is super easy to understand for developers and end users. Could this warning be overly academic?
Section 2.6 says this:
I understand that it is the "state" that is changing, but what is wrong with toggling between mute and unmute on the label, instead of having a button that says something like "mute, pressed"? I think a label swap is super easy to understand for developers and end users. Could this warning be overly academic?