jaredh159 / tailwind-react-native-classnames

simple, expressive API for tailwindcss + react-native

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting "unknown or invalid utility" for font-size + line-height modifier

danieltott opened this issue · comments

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 twtext-base/6 is failing with base/6 unknown or invalid utility

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.

implemented in v4.3.0