gluestack-ui
gluestack-ui copied to clipboard
In <Text> and <Heading> components, passing a text-color className overrides a fontSize declared with more than three letters
Description
In <Text> (and <Heading>) components, passing a text-color className overrides a fontSize declared with more than three letters
CodeSandbox/Snack link
In <Text> and <Heading> 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.jstwo custom fontSizes, both have the same value - 100px - but differente names,3xxland0xl. - I've remapped them in the ejected
<Text>component. - In homepage you can see that if I pass to
<Text>component the size of3xxland whatever text-color class,3xxlis completely ignored - If I pass
3xxlas size without using a text-color class, it works. - If I use the
3 letterscustom fontSize prop called0xland 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
- [x] Expo
- [ ] React Native CLI
- [ ] Next
- [x] Web
- [x] Android
- [x] iOS
Other Platform
No response
Additional Information
No response