-
Notifications
You must be signed in to change notification settings - Fork 1
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: QA fixes for theming/dark mode #611
Conversation
…ive text component for inner texts.
This one:
Could any of you please look at the patch and see if I perhaps did something wrong? 🤔 |
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.
Patch looks fine to me!
src/screens/Assistant/ResultItem.tsx
Outdated
<ThemeText> | ||
<ThemeText style={{marginRight: 12, fontWeight: 'bold'}}> | ||
{leg.line?.publicCode} | ||
</Text>{' '} | ||
<Text numberOfLines={1}>{name}</Text> | ||
</Text> | ||
</ThemeText>{' '} | ||
<ThemeText numberOfLines={1}>{name}</ThemeText> | ||
</ThemeText> |
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.
Should these be nested?
src/screens/Nearby/NearbyResults.tsx
Outdated
{publicCode && ( | ||
<Text style={{fontWeight: 'bold'}}>{publicCode} </Text> | ||
<ThemeText style={{fontWeight: 'bold'}}> |
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.
Should be normal Text-element to inherit? Unsure?
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.
Seems like I missed one here
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.
Seems I missed some of the nested texts after all. I'll go over them.
Themed text on result messages / messagebox
Theme color for icon used in button component
Text style inheritance: Where text is nested, only the outer text should be of the theme text wrapper component type. Inner text should be wrapped in React native Text component to ensure they inherit styles defined for the the text wrapper container
Possible fix for colorScheme not updating on Android, by providing a patch to React native with these changes: Addressing various issues with the Appearance API (#28823) facebook/react-native#29106 (as mentioned in this issue: Appearance module does not behave correctly: addChangeListener does not react to changes, useColorScheme() does not react to changes. facebook/react-native#28823). Doesn't seem to work, though..
Theming on adding/editing favorites, and for emojis!