Open
Description
Description
In (and ) components, passing a text-color className overrides a fontSize declared with more than three letters
CodeSandbox/Snack link
In and components, passing a text-color className overrides a fontSize declared with more than three letters
Steps to reproduce
- Go to the Codesandbox example
- You can see that I've created in
tailwind.config.js
two custom fontSizes, both have the same value - 100px - but differente names,3xxl
and0xl
. - I've remapped them in the ejected
<Text>
component. - In homepage you can see that if I pass to
<Text>
component the size of3xxl
and whatever text-color class,3xxl
is completely ignored - If I pass
3xxl
as size without using a text-color class, it works. - If I use the
3 letters
custom fontSize prop called0xl
and both a text-color class, it works as expected but if you create a new custom `fontSize" prop > 3 letters it will not work...
Tested locally also on Android and iOS, same problem...
gluestack-ui Version
0.7.22
Platform
- Expo
- React Native CLI
- Next
- Web
- Android
- iOS
Other Platform
No response
Additional Information
No response