3 ms·
If more component libraries went with the following structure... <label> <input type="radio" /> <span>Label Text</span> </label> It's easy
by tracker1 10y ago
If more component libraries went with the following structure...
<label>
<input type="radio" />
<span>Label Text</span>
</label>
It's easy enough to target the input/span as children of label for custom styling, without having to use JS or some weird wrangling of classes and structure.