Skip to content

bug: Floating labels - wrong default size for all content, does not account for select-xx size, wrong documentation example #3676

@pdanpdan

Description

@pdanpdan

Reproduction URL (Required)

https://play.tailwindcss.com/kQfTUmxKZN

What version of daisyUI are you using?

5.0.4

Which browsers are you seeing the problem on?

Chrome

Describe your issue

Hello. There are some problems with the floating-label:

  1. The example in the docs is incomplete, or at least the code does not correspond to the output (the inputs should have the label in placeholder also, or else nothing is displayed when field is empty)
  2. The size of the floated label when only input class is applied (without size modifier) is wrong - the input field is md-sized, but the label is sm-sized
  3. The floated label size does not change based on the size modifier of select (but changes for textarea)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions