Getting "unknown or invalid utility" for font-size + line-height modifier
danieltott opened this issue · comments
Dan Ott commented
TailwindCSS allows us to modify the line-height when using text-*
line height utilities:
className="text-base/6"
This should apply the base font size, and the style from leading-6
.
However setting this via tw
is failing with text-base/6
base/6
unknown or invalid utility
Jared Henderson commented
yeah, thanks for the issue. the long hand works fine here as a workaround: text-base leading-6
but you're probably aware of that. i agree that the shorthand should be supported.
made a quick draft PR with a failing test here #293
i'll try to work on an implementation shortly, unless you wanted to take a whack at it.
Jared Henderson commented
implemented in v4.3.0