[BUG] Change MenuItem Text style from #48509, found in #46030#48456
Merged
luacmartins merged 5 commits intoSep 9, 2024
Merged
Conversation
…-fork into Guccio163/46030-shortFiltersBug
…-fork into Guccio163/46030-shortFiltersBug
…-fork into Guccio163/46030-shortFiltersBug
Contributor
Author
|
I'm not assigning any designers directly because this change doesn't present any new designs, @luacmartins can you please tag a QA to check for possible conflicts? 🙏 |
…-fork into Guccio163/46030-shortFiltersBug
Contributor
|
@Guccio163 since this involves the entire App and it's a pretty small change, I think we should just go through the regular review process with C+ and then merge/deploy. We'll catch any issues during regression tests and can address them. |
|
@rayane-djouah Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Contributor
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-09-08.at.9.19.09.PM.movScreen.Recording.2024-09-08.at.9.29.16.PM.movAndroid: mWeb ChromeScreen.Recording.2024-09-08.at.9.21.03.PM.moviOS: NativeSimulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-09-08.at.21.24.08.mp4iOS: mWeb SafariSimulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-09-08.at.21.25.56.mp4MacOS: Chrome / SafariScreen.Recording.2024-09-08.at.9.12.18.PM.movMacOS: DesktopScreen.Recording.2024-09-08.at.9.26.17.PM.mov |
Contributor
|
@luacmartins All yours! |
luacmartins
approved these changes
Sep 9, 2024
Contributor
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
58 tasks
6 tasks
Closed
6 tasks
50 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Details
This PR changes MenuItem Text component's flex prop to 1, to force using all provided space (especially on Android) and thus end in more or less the same place when truncated (depending on the content). This fix changes
MenuItem's behaviour in the whole app, but above all in SearchAdvancedFilters, where the previous inconsistency was visible the most.The change is visible the most on android (far right in first screenshot, middle in the second)
Previously:

After the change:

Fixed Issues
$ #48509
PROPOSAL:
Tests
MenuItems when too long are truncated at the end of available space (not earlier), it is mainly visible in filters' values in/search/filters.Offline tests
N/A
QA Steps
Check if current change didn't affect any application's feature negatively.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))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
android.mov
Android: mWeb Chrome
mWeb-android.mov
iOS: Native
ios.mov
iOS: mWeb Safari
mWeb-ios.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov