-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
chore: cp-7.59.0 revert font preloader changes from #21199 #22342
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
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
| paddingVertical: Platform.OS === 'ios' ? 2 : 1, | ||
| // Ensure consistent line height for custom font baseline alignment | ||
| lineHeight: Platform.OS === 'ios' ? 20 : 22, | ||
| // Ensure consistent line height for custom font baseline alignment lineHeight: Platform.OS === 'ios' ? 20 : 22, |
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.
This seems like a mistake that we want to keep I'll create a follow up PR to fix the inputs specifically
| paddingVertical: Platform.OS === 'ios' ? 2 : 1, | ||
| // Ensure consistent line height for custom font baseline alignment | ||
| lineHeight: Platform.OS === 'ios' ? 20 : 22, | ||
| // Ensure consistent line height for custom font baseline alignment lineHeight: Platform.OS === 'ios' ? 20 : 22, |
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.
Bug: Merged Comments Break Code
The comment and code are merged on the same line without proper line break. The comment // Ensure consistent line height for custom font baseline alignment is concatenated directly with the code lineHeight: Platform.OS === 'ios' ? 20 : 22, on line 48, which will cause a syntax error. The newline character between the comment and the code statement was accidentally removed during the revert.
3678185 to
a5a0bb4
Compare
a6b0611 to
8378ad8
Compare
In the PR that we are reverting was the testing coverage for the font preloader. Ignoring Sonar Qube coverage check because of this |
09ccad9
8378ad8 to
09ccad9
Compare
|


Description
This PR reverts commit 74b8745 from PR #21199.
What is the reason for the change?
The font preloader changes introduced in #21199 are causing rendering bugs in the application:
What is the improvement/solution?
This revert restores the previous variant-based font preloading approach, which:
Changelog
CHANGELOG entry: null
Related issues
Fixes: #22301
Reverts: #21199
Original commit: 74b8745
Manual testing steps
Screenshots/Recordings
Before
N/A - This is a revert PR
After
N/A - This is a revert PR
Pre-merge author checklist
Pre-merge reviewer checklist
🤖 Generated with Claude Code
Note
Reverts/rewrites font preloader to load only TextVariant fonts and updates input styles to set fontWeight from theme while removing hardcoded lineHeight/fontFamily; updates tests and snapshots accordingly.
app/core/FontPreloader/FontPreloader.ts): revert to variant-based font loading usingTextVariantandgetFontFamily; preload 400/500/700 weights on web; streamline native preload and logging.app/core/FontPreloader/__tests__/FontPreloader.test.ts): simplify and align with new preloader behavior (singleton, RN preload, concurrency, reset, errors, promise access).app/component-library/.../Input.styles.ts): applyfontWeightfromtheme.typography[textVariant]; keep baseline alignment; minor comment/format tweak.fontFamilyin custom inputs (Views/EnterPasswordSimple/index.js,Views/RevealPrivateCredential/styles.ts,Views/MultichainAccounts/PrivateKeyList/styles.ts).fontWeight: "400"and removal of explicitlineHeight/fontFamilywhere applicable.Written by Cursor Bugbot for commit 09ccad9. This will update automatically on new commits. Configure here.