Closed MaximBalaganskiy closed 4 years ago
Default browser checkbox allows toggle via label clicking. It's quite inconvenient to aim for the square which is relatively small.
Shouldn't connecting a label to a checkbox be the job of the user? There' ways to do it: wrapping inside a label, id + for, adding the listener by users themselves. Also, it doesn't seem correct to only take care of immediate sibling, and especially only next sibling.
Wrapping in label works. Although styling is needed to align text with the checkbox and enable cursor pointer
Can you give some description about the motivation for this change?