Skip to content

Toggle button shouldn't change the label. #121

Description

@DavidMacDonald

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?

Metadata

Metadata

Assignees

Labels

FeedbackIssue raised by or for collecting input from people outside APG task forcequestionIssue asking a question

Type

No type

Relationships

None yet

Development

No branches or pull requests

Issue actions