Skip to content

Commit 792c8d2

Browse files
authored
Merge pull request #944 from yuyokk/patch-1
Update forms.mdx. Use `id` instead of `name` for `htmlFor`
2 parents 19e84f8 + da2df54 commit 792c8d2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/docs/src/pages/components/forms.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,14 @@ import {
2727
<Label htmlFor='username'>Username</Label>
2828
<Input
2929
name='username'
30+
id='username'
3031
mb={3}
3132
/>
3233
<Label htmlFor='password'>Password</Label>
3334
<Input
3435
type='password'
3536
name='password'
37+
id='password'
3638
mb={3}
3739
/>
3840
<Box>
@@ -42,14 +44,15 @@ import {
4244
</Label>
4345
</Box>
4446
<Label htmlFor='sound'>Sound</Label>
45-
<Select name='sound' mb={3}>
47+
<Select name='sound' id='sound' mb={3}>
4648
<option>Beep</option>
4749
<option>Boop</option>
4850
<option>Blip</option>
4951
</Select>
5052
<Label htmlFor='comment'>Comment</Label>
5153
<Textarea
5254
name='comment'
55+
id='comment'
5356
rows='6'
5457
mb={3}
5558
/>

0 commit comments

Comments
 (0)