-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix nested Text components not inheriting foreground color from parent #1283
Fix nested Text components not inheriting foreground color from parent #1283
Conversation
187628c
to
b126bc5
Compare
This seems to due RN Mac commits that fix text colors for dark mode: - microsoft@8ed55a8 - microsoft@731a535 It works on iOS, web .... so it should behave the same on macOS as well
b126bc5
to
e493785
Compare
OK, so I looked more into this. I was wondering why RN macOS diverged from RN Core on foreground color for Text. Upon testing, I realize that RN Core has a bug that we fixed in RN macOS. The iPhone simulator on the left and macOS app in the middle are running with React Native macOS. They properly handle Text in Dark mode. The iPhone simulator on the right is RN Core on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Between this PR and the 2 commits mentioned, there's a candidate for an RN Core upstream fix. I guess we can further discuss how we should track those / the strategy for how we push those / who will make the fix. I believe you mentioned there are more commits y'all have that could also be RN Core upstream fixes, so I feel it's worth chatting about :)
@Saadnajmi 1 is fixed here. It 2 is still a problem I am gonna fix it as well ;-) |
microsoft#1283) This seems to due RN Mac commits that fix text colors for dark mode: - microsoft@8ed55a8 - microsoft@731a535 It works on iOS, web .... so it should behave the same on macOS as well Co-authored-by: Liron Yahdav <[email protected]> # Conflicts: # Libraries/Text/RCTTextAttributes.m # packages/rn-tester/js/examples/Text/TextExample.ios.js # Conflicts: # packages/rn-tester/js/examples/Text/TextExample.ios.js
microsoft#1283) This seems to due RN Mac commits that fix text colors for dark mode: - microsoft@8ed55a8 - microsoft@731a535 It works on iOS, web .... so it should behave the same on macOS as well Co-authored-by: Liron Yahdav <[email protected]> # Conflicts: # Libraries/Text/RCTTextAttributes.m # packages/rn-tester/js/examples/Text/TextExample.ios.js # Conflicts: # packages/rn-tester/js/examples/Text/TextExample.ios.js
Please select one of the following
This seems to due RN Mac commits that fix text colors for dark mode:
It works on iOS, web .... so it should behave the same on macOS as well
Changelog
[macOS] [Fixed] - Fix nested Text components not inheriting foreground color from parent
Test Plan
Before

After

iOS - as reference
