• Admiral Patrick@dubvee.org
    link
    fedilink
    English
    arrow-up
    22
    arrow-down
    1
    ·
    edit-2
    10 months ago

    Exactly. A light switch* shows its current state, and toggle buttons are effectively an equivalent to that.

    *Standard, two-way garden variety light switch

    • nxdefiant@startrek.website
      link
      fedilink
      arrow-up
      15
      arrow-down
      1
      ·
      10 months ago

      I’d argue that a light switch has an indicator that shows the current state, separate from the switch.

    • NewPerspective@lemmy.world
      link
      fedilink
      arrow-up
      5
      arrow-down
      1
      ·
      10 months ago

      Light switches are a bad example. Up doesn’t mean on and down doesn’t mean off when you have multiple switches for the same thing.

      These switches visibly have 2 states and switching it means you want the other one. In tech it’s less obvious that there are only two states and that toggling the button will do something in particular. Recall the play and pause button on your media app. That button could change the state in any number of ways but in order to convey to the user what will happen BEFORE the button is pressed, the player shows what action will take place.

      You’re already in the current state, that rarely adds info. Toggles should indicate what they will do.

      • Admiral Patrick@dubvee.org
        link
        fedilink
        English
        arrow-up
        2
        arrow-down
        1
        ·
        10 months ago

        When I think “toggle” switch, I think in terms of binary states: on or off. Which is why I used a light switch as an example rather than a media play/pause button which can have multiple states. In that scenario, yes, it would be more intuitive for the button to display the action it will perform.

        Up doesn’t mean on and down doesn’t mean off when you have multiple switches for the same thing.

        A close-up of a light switch showing the label for off

    • karlhungus@lemmy.ca
      link
      fedilink
      arrow-up
      3
      ·
      10 months ago

      In my experience only kinda, and by convention (up is on), and three-way switches break this (indicator becomes the light itself).