Fix approve dropdown menu overlapping with composer#83292
Closed
Fix approve dropdown menu overlapping with composer#83292
Conversation
… above the button The approve dropdown in the report preview was opening below the button (default behavior) which caused it to overlap with the composer. This adds an anchorAlignment prop and passes vertical: BOTTOM at the report preview call site so the dropdown opens upward, matching the sibling Pay and Add Expense buttons. Co-authored-by: truph01 <truph01@users.noreply.github.com>
Contributor
Author
|
I created this PR from an upstream branch since I don't have push access to your fork. To take ownership of this branch and be able to push updates, run: Then you can close this PR and open a new one from your fork. |
7 tasks
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
Contributor
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-02-24.at.14.12.23.movAndroid: mWeb ChromeScreen.Recording.2026-02-24.at.14.09.51.moviOS: HybridAppScreen.Recording.2026-02-24.at.14.05.21.moviOS: mWeb SafariScreen.Recording.2026-02-24.at.14.01.04.movMacOS: Chrome / SafariScreen.Recording.2026-02-24.at.13.57.55.mov |
Contributor
|
@MelvinBot Make the PR ready for review |
Contributor
Author
|
Done! This PR has been marked as ready for review. 🚀 |
truph01
approved these changes
Feb 24, 2026
Contributor
|
I think we'd need to close this one in favor or #83334 |
joekaufmanexpensify
approved these changes
Feb 24, 2026
Contributor
joekaufmanexpensify
left a comment
There was a problem hiding this comment.
Good for product 👍
Contributor
|
Closing it, since the revert fixed the deploy blocker and it caused conflicts here |
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.
Explanation of Change
The
ExpenseHeaderApprovalButtoncomponent (introduced in #70825) renders aButtonWithDropdownMenufor the approve action when held expenses exist, but doesn't pass ananchorAlignmentprop. This causes the dropdown to default to opening below the button (vertical: TOP), which overlaps with the composer since the button sits near the bottom of the report preview card.This PR adds an optional
anchorAlignmentprop toExpenseHeaderApprovalButtonand forwards it toButtonWithDropdownMenu. InMoneyRequestReportPreviewContent, the approve button now passesvertical: BOTTOMso the dropdown opens above the button — matching the existing pattern used by the sibling Pay and Add Expense buttons.Fixed Issues
$ #83264
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari