-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Wrap long cell labels on Android #37993
Conversation
Prior to this change, the cell label container was disallowed from shrinking to accommodate its siblings. This caused longer labels to force the sibling elements out of the viewport causing them to be invisible or cut-off. Additional changes were applied to the link suggestion styles to ensure the sibling of cell icons do not encroach upon the now static width icon.
Size Change: +355 B (0%) Total Size: 1.13 MB
ℹ️ View Unchanged
|
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 🎊 !
I checked that all test cases pass and added some minor comments (none of them should be considered as blockers) in relation to the third case and within the file changes:
- Case 1: Long Label Wraps ✅
- Case 2: Scaled Text Controls Remain Accessible ✅
- Case 3: Link Picker Aligned Correctly ✅ (with a comment)
I think it makes sense to have the same padding on both sides, however, I'm wondering whether the content (i.e. icon and link as a single item) under the separator line is expected to be aligned with it (see attached screenshot), wdyt?
- Case 4: Android Media Options Aligned Correctly ✅
Tested on Samsung Galaxy S20 FE 5G (Android 10) and Simulator - iPhone 12 Pro Max (iOS 15.0).
These styles are the default values and redundant.
Force link suggestion title to fill parent width, which causes the link suggestion to match the parent separator line width.
Good question. It is difficult to tell from the original implementation images and discussion within wordpress-mobile/gutenberg-mobile#2484. However, I went ahead and updated the styles to ensure the link suggestion title does align with the right side of the separator line.
I plan to move forward with merging this bug fix, but @iamthomasbishop please let me know if you disagree with the alignment change in the images. |
Looks good to me, thanks @dcalhoun! |
Related PRs
Description
Fixes #37858. Prior to this change, the cell label container was disallowed from shrinking to accommodate its siblings. This caused longer labels to force the sibling elements out of the viewport causing them to be invisible or cut-off.
Additional changes were applied to the link suggestion styles to ensure the sibling of cell icons do not encroach upon the now static width icon.
Lastly, #37995 was created to capture an existing, unrelated issue identified while testing this work.
How has this been tested?
Case 1: Long Label Wraps
English, e.g. Spanish.
Case 2: Scaled Text Controls Remain Accessible
Case 3: Link Picker Aligned Correctly
Case 4: Android Media Options Aligned Correctly
Screenshots
Long Label Wraps
Scaled Text Controls Remain Accessible
Link Picker Suggestion Aligned Correctly
Media Options Aligned Correctly
Types of changes
Bug fix
Checklist:
*.native.js
files for terms that need renaming or removal).