gluestack-ui
gluestack-ui copied to clipboard
Dark mode props overwriting light props
Description
While styling my button spinner I've noticed that the dark mode styles, when applied via the prop color value, overwrite the light mode styles
CodeSandbox/Snack link
No response
Steps to reproduce
- Apply styles to the button component via the config
- Update the spinner styles by adding prop -> color ->
value - Update the dark styles
- The light mode has the dark mode styles
gluestack-ui Version
1.1.22
Platform
- [X] Expo
- [ ] React Native CLI
- [ ] Next
- [X] Web
- [X] Android
- [X] iOS
Other Platform
No response
Additional Information
@jordmccord Thanks for reporting this. We're working on it.
Closing this issue since it has been resolved in the latest version. If the problem continues, please feel free to reopen it.
Please update @gluestack-ui/themed and @gluestack-style/react to the latest version.
This is still an issue on the nativewind alpha - setting mode="light" on GluestackUIProvider then having classnames such as className="bg-background-light dark:bg-background-dark" on a view element will render the dark background.