-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
1/n Nested Text textAlignVertical (Android) - Adding CustomStyleSpan API to align nested text vertically #35949
Conversation
P type task |
Base commit: 26b2bb5 |
P type task |
fabOnReact@112eeee fabOnReact@d8556a7
P type task |
…avity.TOP (correct-behaviour, not-correct-behaviour, commit) facebook#35949 (comment)
…avity.TOP (correct-behaviour, not-correct-behaviour, commit) facebook#35949 (comment)
Fixed with fabOnReact@112eeee fabOnReact@d8556a7 CustomStyleSpan does not correctly align to the top
https://www.icloud.com/iclouddrive/0c5XGBRUS_L8LQiOUY0K4lq4Q#abs_size_span_align_correctly CustomStyleSpan correctly aligns to the top
https://www.icloud.com/iclouddrive/0ce2Z2PvcjrXWy5kQ2iCjDMug#custom_style_span_correctly_aligns |
Correctly aligning top/bottom with a different font family/style
https://www.icloud.com/iclouddrive/08ekjoNTUTIhPIY3nCF1C83mQ#using_different_font_style |
This PR is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This PR was closed because it has been stalled for 7 days with no activity. |
Should not have been closed. |
Summary
1/n of a series of pull requests (Nested Text textAlignVertical).
The CSS property vertically aligns the text relative to the lineHeight (comment).
https://developer.mozilla.org/en-US/docs/Web/CSS/vertical-align
This PR adds the option textAlignVertical in the
CustomStyleSpan
constructor to change the text baseline (vertical alignment). TheupdateDrawState
method is responsible for aligning the span (text) to the top or bottom.Update 2nd of February
Next PR: 2/n Nested Text textAlignVertical (Android) - adding textAlignVertical prop to NestedText #35704
Related:
fixes #30375 #30375 (comment)
Changelog
[ANDROID] [ADDED] - Adding CustomStyleSpan API to align nested text vertically
Test Plan
Video tests of the functionality: #35949 (comment) and #35949 (comment)
Previous Video tests of the functionality in PR #35704
#35949 (comment)
#35704 (comment)
#35704 (comment)
#35704 (comment)
Previous Tests
#35704 (comment)
#35704 (comment) #35704 (comment)