-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[BUG] Change MenuItem Text style from #48509, found in #46030 #48456
[BUG] Change MenuItem Text style from #48509, found in #46030 #48456
Conversation
…-fork into Guccio163/46030-shortFiltersBug
…-fork into Guccio163/46030-shortFiltersBug
…-fork into Guccio163/46030-shortFiltersBug
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
@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] |
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
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 |
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 and tests well
@luacmartins All yours! |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
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
MenuItem
s 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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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