]> WPIA git - gigi.git/commitdiff
add: labels for checkboxes
authorLucas Werkmeister <mail@lucaswerkmeister.de>
Mon, 9 Jul 2018 21:32:09 +0000 (23:32 +0200)
committerLucas Werkmeister <mail@lucaswerkmeister.de>
Mon, 9 Jul 2018 22:26:35 +0000 (00:26 +0200)
Associating a checkbox with its label improves accessibility and makes
it more convenient to toggle the checkbox.

For most checkboxes, this adds an `id` for the checkbox and associates
the label with it via the `for` attribute, but for checkboxes in a loop
we can’t use that (multiple checkboxes would have the same `id`), so
there the technique of wrapping the input inside the label is used
instead.

Change-Id: I01b3b8cc57bcdb667bae27f6d88e3c65533a21f5


No differences found