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: V5 Floating label + validator causes placeholder text to be off centered #3394

Closed
Ostralyan opened this issue Jan 17, 2025 · 3 comments
Closed
Assignees
Labels

Comments

@Ostralyan
Copy link

Ostralyan commented Jan 17, 2025

What version of daisyUI are you using?

v5.0.0-beta.1

Which browsers are you seeing the problem on?

Chrome

Reproduction URL

https://play.tailwindcss.com/eP7Ev0scch

Describe your issue

I believe the issue is caused by the fact that validator takes up space but is invisible and so it's "centering" the input and the validator. You can't move the validator out of the label because it needs to be directly after the input for it to be invisible.

Copy link

Thank you @Ostralyan 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 Jan 17, 2025
@yoshi6jp
Copy link
Contributor

yoshi6jp commented Feb 2, 2025

I checked with the latest playground (tailwind V4) and it seems to have been fixed.

https://play.tailwindcss.com/SexMfA13yV

@saadeghi saadeghi added the v5 label Feb 6, 2025
@Ostralyan
Copy link
Author

Wow looks amazing now! Thanks guys

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

No branches or pull requests

3 participants