Make the "Turn On/Off" text a label for the slider.

So that you can click on the text as well as the slider.
This commit is contained in:
David Fifield 2019-07-23 10:51:47 -06:00
parent fac361c4a1
commit 74d3895ee9

View file

@ -12,7 +12,7 @@
<p></p>
</div>
<div class="b button">
<label id="toggle">Turn On</label>
<label id="toggle" for="enabled">Turn On</label>
<label class="switch">
<input id="enabled" type="checkbox" checked/>
<span class="slider round"></span>