Skip to content

bug: the number-type input spinner “breaks” when the input class is used in the label #4590

Description

@oscar370

Reproduction URL (Required)

https://play.tailwindcss.com/KAIKPJq5T0

What version of daisyUI are you using?

5.6.3

Which browsers are you seeing the problem on?

Chrome

Describe your issue

When I do the following:

<label class="input">
  <span class="label">Label</span>
  <input type="number" />
</label>

The spinner for <input> appears cut off. It isn't fully visible. By adding padding on the right, I can push it far enough to make it visible.

I tried adding classes like overflow-visible, but the computed value for <input> is still clip. Although I'm not sure if clip is the problem.

This only happens to me in Chromium-based browsers (Brave, Chromium, and Ungoogled).

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