Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
pdanpdan opened this issue Mar 15, 2025 · 3 comments
Assignees

Comments

@pdanpdan
Copy link

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)
Copy link

Thank you @pdanpdan for reporting issues. It helps daisyUI a lot 💚
I'll be working on issues one by one. I will help with this one as soon as a I find a solution.
In the meantime providing more details and reproduction links would be helpful.

@saadeghi saadeghi self-assigned this Mar 15, 2025
@pdanpdan
Copy link
Author

Thank you, works as expected.

@saadeghi
Copy link
Owner

Thanks for the detailed report.
Let me know if you found anything else ✌️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants