You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My guess is its because the flex className exists in the dynamicStyles definition, causing the macro to treat this case as a prefix. For example, flex-1 works fine with the default tailwind theme, because theme.flex["1"] is defined out of the box.
End users can workaround by extending the default theme to define theme.flex.grow and theme.flex.shrink:
I don't think this is exactly the same as just defining flex-grow: 1, but its the closest thing to a workaround for now if you want to avoid writing your own style rule.
The text was updated successfully, but these errors were encountered:
The flex-grow and flex-shrink classes are incorrectly looking for
flex["grow"]
/flex["shrink"]
in the theme, which results in no styles being applied:My guess is its because the
flex
className exists in the dynamicStyles definition, causing the macro to treat this case as a prefix. For example,flex-1
works fine with the default tailwind theme, because theme.flex["1"] is defined out of the box.End users can workaround by extending the default theme to define
theme.flex.grow
andtheme.flex.shrink
:I don't think this is exactly the same as just defining
flex-grow: 1
, but its the closest thing to a workaround for now if you want to avoid writing your own style rule.The text was updated successfully, but these errors were encountered: