You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Wallet - No left and right spacing on Next button on Choose your bank account page #86559
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
Identify the pull request that introduced this issue and revert it.
Classification: Frontend bug Causing PR: #84042 - "Add personal card steps" by @narefyev91 (High confidence) Related Issues: None
Recommendation: REVERT
This PR introduces the personal card addition flow including Plaid integration for wallet bank account connections. The issue occurs during the "Add bank account" flow within the Wallet, which is new functionality added by this PR. Since this is staging-only and affects a core wallet feature, reverting is the safest approach to unblock the deploy while a proper fix is developed.
Labels: Will keep DeployBlockerCash as this is a Frontend bug affecting the App. No label changes needed as the correct label is already applied.
Detailed Analysis
Evidence
Issue occurs during: Wallet > Enable Wallet > Add bank account > Plaid flow > Choose your bank account page
The PR adds entirely new personal card flows including PersonalCards/steps/BankConnection, PersonalCards/steps/PlaidConnectionStep, PersonalCards/steps/SelectBankStep, and integration with Plaid for personal bank account selection
Issue is reproducible on staging only (not production), matching when this PR was merged
The PR introduces new Plaid integration flows for personal cards
File changes include wallet-related navigation and Plaid connection handling
The Choose your bank account page is part of the Plaid flow that this PR adds
Root Cause
The issue is likely related to how the Plaid iframe or its container is styled/configured in the new personal card flow. The Plaid SDK renders its UI in an iframe, and if the container has improper styling or constraints, it can cause layout issues with button spacing. The SelectBankStep component shows button styling patterns that may not have proper horizontal spacing applied.
PR #83799 ("Enhance icons UI consistency") refactored how horizontal padding works in the Plaid bank account selection pages. It removed styles.mh5 from the FormProvider's style prop in PlaidStep.tsx (the Enable Wallet flow) and moved padding to individual content elements inside AddPlaidBankAccount.tsx. However, the submit button ("Next") is rendered by FormWrapper, not by AddPlaidBankAccount — so it lost its horizontal padding.
FormWrapper explicitly sets styles.mh0 (zero horizontal margin) on the submit button container (FormWrapper.tsx:199), meaning horizontal spacing must be provided via the submitButtonStyles prop. This prop was not added to the EnablePayments PlaidStep.
What changes do you think we should make in order to solve the problem?
Add submitButtonStyles={[styles.mh5]} to the FormProvider in src/pages/EnablePayments/AddBankAccount/substeps/PlaidStep.tsx. This matches the pattern already used in the analogous ReimbursementAccount/USD/BankInfo/subSteps/Plaid.tsx, which was correctly updated in the same PR.
What alternative solutions did you explore? (Optional)
Re-adding styles.mh5 to the FormProvider's style prop was considered, but that would re-apply horizontal margin to the entire form content area, conflicting with the per-element padding approach adopted by PR #83799. Using submitButtonStyles is the intended mechanism and matches the established pattern.
Next Steps for Contributor+ team: Reply with @MelvinBot implement this to create a draft PR, @MelvinBot <your feedback> to refine this analysis, or explain why you are rejecting Melvin's proposal.
🤖 No additional PR needed — this issue is already fixed on main.
PR #86555 ("[CP Staging] Revert 'Enhance icons UI consistency'") was merged on 2026-03-27, which reverted PR #83799. That revert restores styles.mh5 on the FormProvider style prop in PlaidStep.tsx, directly fixing the missing left/right spacing on the "Next" button.
The current main branch already has:
style={[styles.mh5,styles.flexGrow1]}
When the reverted PR (#83799) is re-landed in the future, it should include submitButtonStyles={[styles.mh5]} on the FormProvider in src/pages/EnablePayments/AddBankAccount/substeps/PlaidStep.tsx to avoid reintroducing this bug.
Activity
melvin-bot commentedon Mar 27, 2026
Triggered auto assignment to @mollfpr (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.melvin-bot commentedon Mar 27, 2026
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon Mar 27, 2026
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
OSBotify commentedon Mar 27, 2026
Investigation Summary
Classification: Frontend bug
Causing PR: #84042 - "Add personal card steps" by @narefyev91 (High confidence)
Related Issues: None
Recommendation: REVERT
This PR introduces the personal card addition flow including Plaid integration for wallet bank account connections. The issue occurs during the "Add bank account" flow within the Wallet, which is new functionality added by this PR. Since this is staging-only and affects a core wallet feature, reverting is the safest approach to unblock the deploy while a proper fix is developed.
Labels: Will keep
DeployBlockerCashas this is a Frontend bug affecting the App. No label changes needed as the correct label is already applied.Detailed Analysis
Evidence
Verification
Root Cause
The issue is likely related to how the Plaid iframe or its container is styled/configured in the new personal card flow. The Plaid SDK renders its UI in an iframe, and if the container has improper styling or constraints, it can cause layout issues with button spacing. The SelectBankStep component shows button styling patterns that may not have proper horizontal spacing applied.
MelvinBot commentedon Mar 27, 2026
Proposal
What is the root cause of that problem?
PR #83799 ("Enhance icons UI consistency") refactored how horizontal padding works in the Plaid bank account selection pages. It removed
styles.mh5from theFormProvider'sstyleprop inPlaidStep.tsx(the Enable Wallet flow) and moved padding to individual content elements insideAddPlaidBankAccount.tsx. However, the submit button ("Next") is rendered byFormWrapper, not byAddPlaidBankAccount— so it lost its horizontal padding.FormWrapperexplicitly setsstyles.mh0(zero horizontal margin) on the submit button container (FormWrapper.tsx:199), meaning horizontal spacing must be provided via thesubmitButtonStylesprop. This prop was not added to the EnablePayments PlaidStep.What changes do you think we should make in order to solve the problem?
Add
submitButtonStyles={[styles.mh5]}to theFormProviderinsrc/pages/EnablePayments/AddBankAccount/substeps/PlaidStep.tsx. This matches the pattern already used in the analogousReimbursementAccount/USD/BankInfo/subSteps/Plaid.tsx, which was correctly updated in the same PR.What alternative solutions did you explore? (Optional)
Re-adding
styles.mh5to theFormProvider'sstyleprop was considered, but that would re-apply horizontal margin to the entire form content area, conflicting with the per-element padding approach adopted by PR #83799. UsingsubmitButtonStylesis the intended mechanism and matches the established pattern.Next Steps for Contributor+ team: Reply with
@MelvinBot implement thisto create a draft PR,@MelvinBot <your feedback>to refine this analysis, or explain why you are rejecting Melvin's proposal.mollfpr commentedon Mar 30, 2026
@MelvinBot implement this
MelvinBot commentedon Mar 30, 2026
🤖 No additional PR needed — this issue is already fixed on
main.PR #86555 ("[CP Staging] Revert 'Enhance icons UI consistency'") was merged on 2026-03-27, which reverted PR #83799. That revert restores
styles.mh5on theFormProviderstyle prop inPlaidStep.tsx, directly fixing the missing left/right spacing on the "Next" button.The current
mainbranch already has:When the reverted PR (#83799) is re-landed in the future, it should include
submitButtonStyles={[styles.mh5]}on theFormProviderinsrc/pages/EnablePayments/AddBankAccount/substeps/PlaidStep.tsxto avoid reintroducing this bug.grgia commentedon Mar 30, 2026
PR was reverted, closing