Skip to content

Commit

Permalink
docs: update copy-pasted input in Validation section of input-field (#…
Browse files Browse the repository at this point in the history
…1192)

The input was probably copy-pasted from the "success" input above, but the id and placeholder weren't updated.
Now the id and placeholder match with the label and Helper message.
  • Loading branch information
simonarys authored Dec 22, 2023
1 parent 6b7de16 commit 464eedf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/docs/forms/input-field.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ Use the following example to apply validation styles for success and error messa
</div>
<div class="mb-6">
<Label for="error" color="red" class="block mb-2">Your name</Label>
<Input id="success" color="red" placeholder="Success input" />
<Input id="error" color="red" placeholder="Error input" />
<Helper class="mt-2" color="red">
<span class="font-medium">Oh, snapp!</span>
Some error message.
Expand Down

2 comments on commit 464eedf

@vercel
Copy link

@vercel vercel bot commented on 464eedf Dec 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 464eedf Dec 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.