3 ms·
It does appear to do that for me in their example on the homepage (desktop Firefox), though? Doesn't this happen by default in most cases where a regular <labe
by KronisLV 5y ago
It does appear to do that for me in their example on the homepage (desktop Firefox), though?
Doesn't this happen by default in most cases where a regular <label/> is used?
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label https://developer.mozilla.org/en-US/docs/Web/HTML/Element/la...
> When a user clicks or touches/taps a label, the browser passes the focus to its associated input (the resulting event is also raised for the input). That increased hit area for focusing the input provides an advantage to anyone trying to activate it — including those using a touch-screen device.
- pupppet 5y agoIt only occurs when you use the label's for attribute to manually associate the label with the input, or wrap both the label text and the input in the same label.