-
Notifications
You must be signed in to change notification settings - Fork 226
select does not take the font size into account #54
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
Comments
Hey! Can't reproduce this, works as expected: https://play.tailwindcss.com/m4nkWD9C9f Please provide an actual reproduction if this is still an issue for you and you can verify by comparing against my demo that it's not user error. |
Hey, thanks for the quick reply! |
Still works when you do that: |
strange... then I must have done something wrong on my side. I'll get to the bottom of it and let you know as soon as I find the reason. Thanks for the quick reply! |
After transferring the settings of my project, I finally found the cause of the bug described above. |
Ah yep in this case it's because your custom font size doesn't have a default line-height associated with it. Add your desired line-height to the select when setting the font size and you're good: https://play.tailwindcss.com/O5ZqffHuJS
|
Sometimes it can be as simple as that. I didn't have the line height in mind. |
If the font size of a select field is changed, the height of the field does not adjust and the text is cut off.
Code for reproducing:
Images:

The text was updated successfully, but these errors were encountered: