Custom Round Checkbox(

almost 4 years ago from Matt Smith, Web Developer

  • Hamish TaplinHamish Taplin, almost 4 years ago

    If you don't have a label element, it's not accessible.

    0 points
    • Thomas Michael SemmlerThomas Michael Semmler, almost 4 years ago

      let me rephrase it:

      You can use a different element instead of the label element for the visual part of the checkbox, or radio button or whatever. If you position your checkbox right above the new visual checkbox, and you just set the opacity to 0, it can still be clicked, so you don't have to use the label element to trigger the clicking, and you are free to use the label element as it is supposed to be used.

      Sorry, I just assumed this is regular knowledge.

      1 point