mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-10-23 10:46:13 +02:00
Link <label for> to <input id>. Fixes #137
This commit is contained in:
@@ -45,6 +45,7 @@ const Details: React.FC<{}> = () => {
|
||||
}}
|
||||
>
|
||||
<input
|
||||
id="floating-label-input"
|
||||
placeholder="Placeholder"
|
||||
type="text"
|
||||
style={{
|
||||
@@ -54,6 +55,7 @@ const Details: React.FC<{}> = () => {
|
||||
}}
|
||||
/>
|
||||
<label
|
||||
htmlFor="floating-label-input"
|
||||
style={{
|
||||
left: '8px',
|
||||
padding: '0 8px',
|
||||
|
Reference in New Issue
Block a user