Closed musab-olurode closed 2 months ago
Additionally, simple tailwind animations on icons are broken. Inspecting the generated HTML in the browser, it looks like all classes are being added to the SVG icons and all their children
Nativewind animations are still experimental
~But also experiencing the same button text issue, it is fixed if you make the color a hex instead of hsl~ Tested this again, this no longer fixes it
Nativewind animations are still experimental
I was using it fine in a previous version of rnr though.
But also experiencing the same button text issue, it is fixed if you make the color a hex instead of hsl
That doesn't break nativewind?
But also experiencing the same button text issue, it is fixed if you make the color a hex instead of hsl
That doesn't break nativewind?
I just tested this again and that trick no longer works, for now what does work is on the custom text view putting dark:text-white
@musab-olurode have you tested with the latest versions of NativeWind? 4.1.6
works for me, but after that text-foreground
seems to be breaking.
@trevorpfiz I've tested with 4.0.33
(the preinstalled version on the starter base) and 4.0.36
@trevorpfiz I just tried 4.16, still doesn't work.
Edit: 4.16 seems to be working now
@mrzachnugent You can see text-foreground
not setting a color on the button text when it is inside a Card
. I am noticing this bug in different project, where it seems all uses of text-foreground
within a Card
are not working. 4.1.6
is the latest version without the bug. repro: https://github.com/trevorpfiz/starter-base-repro
Describe the bug Button Text color remains black in both light and dark theme WITHOUT changing anything. It looks like the
text-foreground
class has no effect in the button TextContext. Adding any other non-theme text color works as expected. This exists on the starter-base without any modifications.To Reproduce Steps to reproduce the behavior:
Expected behavior Button Text should use the defined foreground color in dark mode
Screenshots
Platform (please complete the following information):
Additional context