Skip to content

Wallet - No left and right spacing on Next button on Choose your bank account page #86559

Closed

Description

@lanitochka17

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 9.3.50-1
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from BrowserStack: https://test-management.browserstack.com/projects/2219752/test-runs/TR-13882/folder/13176687/41236682/1285942981?q=wallet&issue_type=jira&sort=-identifier
Email or phone of affected tester (no customers): applausetester+jsodisjsdnodsjs2i@applause.expensifail.com
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: Mac 26.2 / Chrome
App Component: Other

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to Account > Wallet.
  3. Click Enable Wallet.
  4. Click Add bank account.
  5. Go through Plaid flow.

Expected Result:

Next button on Choose your bank account page will have left and right spacing.

Actual Result:

Next button on Choose your bank account page does not have left and right spacing.

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari

Screenshots/Videos

Bug7115029_1774625096597.14.mp4
Image

View all open jobs on GitHub

Activity

  1. added
    DeployBlockerCash
    Daily
    Bug
    on Mar 27, 2026
  2. melvin-bot commented on Mar 27, 2026

    @melvin-bot

    Triggered auto assignment to @mollfpr (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

  3. melvin-bot commented on Mar 27, 2026

    @melvin-bot

    💬 A slack conversation has been started in #expensify-open-source

  4. github-actions commented on Mar 27, 2026

    @github-actions
    Contributor

    👋 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:

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  5. OSBotify commented on Mar 27, 2026

    @OSBotify
    Contributor

    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 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
    • PR Add personal card steps #84042 was merged on 2026-03-26 and is in the staging deploy (9.3.50-1)
    • 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

    Verification

    • PR Add personal card steps #84042 creates new files in /src/pages/settings/Wallet/PersonalCards/
    • 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.

  6. MelvinBot commented on Mar 27, 2026

    @MelvinBot
    Contributor

    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.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.

  7. mollfpr commented on Mar 30, 2026

    @mollfpr
    Contributor

    @MelvinBot implement this

  8. MelvinBot commented on Mar 30, 2026

    @MelvinBot
    Contributor

    🤖 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.

  9. grgia commented on Mar 30, 2026

    @grgia
    Contributor

    PR was reverted, closing

  10. removed
    DeployBlockerCash
    on Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

BugEngineeringHourly

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions