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
technologyconsulting
changed the title
glkuestack-ui v2 InputField - Not accepting color changes to text and placeholder using className.
gluestack-ui v2 InputField - Not accepting color changes to text and placeholder using className.
Nov 28, 2024
There seems to be something wrong with the way you're mapping the css properties. If i remove placeholder:text-typography-500 from the base: then using text-pink-500 and dark:text-yellow-500 in the className starts working.
Removed placeholder:text-typography-500 from the base: from the following code in the index.tsx.
Description
setting input field text color doesn't work. I should be able to set the color.
CodeSandbox/Snack link
https://I-do-not-know-how-to-set-gluestack-up-in-a-snack
Steps to reproduce
This is what i have and the text and placeholder colors do not work if i use className? If i use the style={{}} then they do?
If I add a bg-pink-500 to color the background then the background color is set!
gluestack-ui Version
2
Platform
Other Platform
No response
Additional Information
Expo 52, react-native 0.76.3, nativewind 4.0.36, tailwindcss 3.4.15,
The text was updated successfully, but these errors were encountered: