Skip to content

Commit

Permalink
Fix: add for in default/example/dialog-demo.svelte
Browse files Browse the repository at this point in the history
Added the html `for` attribute in labels for best practice. For some reason, this was featured in [New York](https://github.com/huntabyte/shadcn-svelte/blob/main/apps/www/src/lib/registry/new-york/example/dialog-demo.svelte) style but not default.
  • Loading branch information
braden-w authored Feb 27, 2024
1 parent 9ed8f32 commit d1801e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/www/src/lib/registry/default/example/dialog-demo.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
</Dialog.Header>
<div class="grid gap-4 py-4">
<div class="grid grid-cols-4 items-center gap-4">
<Label class="text-right">Name</Label>
<Label for="name" class="text-right">Name</Label>
<Input id="name" value="Pedro Duarte" class="col-span-3" />
</div>
<div class="grid grid-cols-4 items-center gap-4">
<Label class="text-right">Username</Label>
<Label for="username" class="text-right">Username</Label>
<Input id="username" value="@peduarte" class="col-span-3" />
</div>
</div>
Expand Down

0 comments on commit d1801e8

Please sign in to comment.