-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Line height is distributed unevenly when lineHeight <= fontSize #3593
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. |
@rickycodes done |
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.
LGTM. But remove the Podfile changes
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.
Hey @nuoyz, looks like the tests are failing, can you ran this command to update the snapshots?
yarn test:unit:update
|
Description
When lineHeight is less than the fontSize, Text shrinks the line's bounding box only by removing space from above the text, rather than distributing the space evenly above and below, as is done with extra line height.
Checklist
Issue
Resolves #???
![image](https://user-images.githubusercontent.com/11713023/149941558-9f583d71-9194-4bce-b892-93149c9c8d8a.png)
![image](https://user-images.githubusercontent.com/11713023/149941593-da59530e-6b2d-4400-9bc4-2b42c0912616.png)