Echo JS 0.11.0

<~>
tracker1 1710 days ago. link 1 point
missing `label > input[type=checkbox] + span` and related for styling checkbox and radio input... by practice, I will wrap them in a label, and separate the text for the label next to the input element.

    <label>
      <input type="checkbox ...>
      <span>text</span>
    </label>

This way you can use the checked, etc and hide the input control and insert a custom graphic or character before the span to stylize the control itself and the text, where the label wrapping will capture mouse clicks or spacebar activation and toggle the input itself.

Replies