Follow up improvements for inline code blocks on iOS#89705
Conversation
|
|
|
|
||
| using namespace facebook::react; | ||
|
|
||
| +static const CGFloat inlineCodeBackgroundTopInset = 3; |
There was a problem hiding this comment.
The value is agreed with the design team to make letters visually centered. We can't derive it, so define a const for it.
|
|
||
| if (textAttributes.backgroundColor || !isnan(textAttributes.opacity)) { | ||
| - attributes[NSBackgroundColorAttributeName] = RCTEffectiveBackgroundColorFromTextAttributes(textAttributes); | ||
| + UIColor *bgColor = RCTEffectiveBackgroundColorFromTextAttributes(textAttributes) ?: [UIColor clearColor]; |
There was a problem hiding this comment.
RCTEffectiveBackgroundColorFromTextAttributes won't return nil , but that's not documented and subject to change, so fall back to clearColor just in case.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 59c2eca268
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppNA Android: mWeb ChromeNA
iOS: mWeb SafariNA MacOS: Chrome / SafariNA |
rojiphil
left a comment
There was a problem hiding this comment.
Thanks @QichenZhu for the patience here.
The rounded corners LGTM.
Approving for internal review.
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #57556 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
@aldo-expensify Yeah. The darker grey thin border is missing and is part of step 3 of the 3-step incremental approach. The current PR addresses Step 1 and the other steps are being worked upon as mentioned in #57556 (comment). Given that the changes were non-trivial and required updates to patch files that could introduce regressions, my understanding is that we are implementing the steps with incremental PRs. |
Ahh, I had misunderstood the steps split, thanks! |
|
🚧 @aldo-expensify has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/aldo-expensify in version: 9.3.76-0 🚀
|
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.3.77-3 🚀
|



Explanation of Change
This implements step 1 on iOS of the 3-step incremental approach:
Fixed Issues
$ #57556
PROPOSAL:
Tests
Note: This change only affects iOS Native.
Offline tests
Same as Tests.
QA Steps
Same as Tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native (N/A)
Android: mWeb Chrome (N/A)
iOS: Native
iOS: mWeb Safari (N/A)
MacOS: Chrome / Safari (N/A)