Skip to content

docs: inconsistent "Form requirement validator" example #4393

@ogix

Description

@ogix

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions