Replies: 1 comment 1 reply
-
Same concerns here. Have you found a solution? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I notice that, when using
@tailwindcss/forms
, all text fields and selects are not using thefont-size
andline-height
of their parent. Instead, they use thebaseFontSize
andbaseLineHeight
. This seems to be the case from the first published version on GitHub.This seems quite counterintuitive for me - I would expect that such elements inherit the
font-size
andline-height
of the parent: If a form on my website uses a specific text size, I want the contained text fields and selects to use this exact text size as well. So in my application, I override the corresponding default styles in@tailwindcss/forms
withfont-size: inherit
andline-height: inherit
.My question: Is there any important technical reason I'm probably missing that have led the authors to apply
baseFontSize
andbaseLineHeight
to such elements? Or was it just a matter of taste?Beta Was this translation helpful? Give feedback.
All reactions