-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Description
On which page do you see this issue?
https://daisyui.com/components/validator/
Describe the issue
In "Form requirement validator" example email is wrapped with fieldset element and password is wrapped with label element. It should probably use label for both but I wonder if using fieldset class is still correct.
<form class="fieldset bg-base-200 border-base-300 rounded-box w-xs border p-4">
<fieldset class="fieldset">
<label class="label">Email</label>
<input type="email" class="input validator" placeholder="Email" required />
<p class="validator-hint hidden">Required</p>
</fieldset>
<label class="fieldset">
<span class="label">Password</span>
<input type="password" class="input validator" placeholder="Password" required />
<span class="validator-hint hidden">Required</span>
</label>
<button class="btn btn-neutral mt-4" type="submit">Login</button>
<button class="btn btn-ghost mt-1" type="reset">Reset</button>
</form>
What browsers are you seeing the problem on?
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels