Repository navigation
[Payment due @ZhenjaHorbach] fix(DynamicForm): Give every input the same spacing as its neighbors - #105382
Conversation
The field rows already space inputs 16px apart, but some inputs added their own outer margins on top of that. The street address input carried 24px from AddressFormFields, so an address sat 40-48px below the field above it. DatePicker added 8px on each side. TabSelector kept the bottom and side padding it uses at the top of a page, which pushed the tabs 20px in from the input edges, and the tab question touched the tabs. AddressFormFields no longer puts a margin above the street. Its two other callers pass the same margin as containerStyles, so they look the same.
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
AddressFormFields put the city 24px below the street, while every other pair of inputs in DynamicForm is 16px apart. The city margin is now a prop that DynamicForm sets to 16px. AddressStep and AdditionalDetailsStep keep the 24px default, so they look the same.
|
@ZhenjaHorbach 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] |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
🚧 joekaufmanexpensify has triggered a test Expensify/App build. You can view the workflow run here. |
This comment has been minimized.
This comment has been minimized.
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-10-30.at.12.09.39.movAndroid: mWeb ChromeScreen.Recording.2026-10-30.at.12.06.28.moviOS: HybridAppScreen.Recording.2026-10-30.at.12.09.39.moviOS: mWeb SafariScreen.Recording.2026-10-30.at.12.06.28.movMacOS: Chrome / SafariScreen.Recording.2026-10-30.at.12.02.26.mov |
|
🎯 @ZhenjaHorbach, thanks for reviewing and testing this PR! 🎉 A payment issue will be created for your review once this PR is deployed to production. If payment is not needed (e.g., regression PR review fix etc), react with 👎 to this comment to prevent the payment issue from being created. |
|
But LGTM |
grgia
left a comment
There was a problem hiding this comment.
LGTM, going to add @dubielzyk-expensify
Thank you, I didn't notice it, but for now I'd skip it. Especially since we ultimately want to replace it with regular input select elements with dropdowns https://github.com/Expensify/Expensify/issues/696389. |
…amic-form-spacing
|
What's going on at Also for all the storybook screenshots in the original post, none of them are using the right font I think? If these are all expected, then continue on :) |
More like a freezing of the video 😅 |
|
merge main for performance tests? |
…amic-form-spacing
|
@grgia I think it is ready for merge
I think so too. Just to be on the safe side, I went through the entire flow, and nothing alarming happened. |
|
🚧 grgia has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/grgia in version: 9.5.31-0 🚀
|
|
No help site update needed — this PR only fixes form spacing and alignment; it adds no workflow, changes no labels, and makes no existing article sentence incorrect. |
|
🚀 Deployed to staging by https://github.com/grgia in version: 9.5.31-0 🚀
|
|
🚀 Deployed to production by https://github.com/blimpich in version: 9.5.31-4 🚀
Bundle Size Analysis (Sentry): |

Explanation of Change
A quick fix for the extra space between fields in DynamicForm, reported in #104741 (comment) (the gap between the phone number and the address in the business representative form). DynamicForm already spaces every row by itself, but some shared inputs it renders add their own outer margin on top of that. This PR removes those margins inside DynamicForm only.
In the app
In the code
AddressFormFieldsno longer puts a top margin on the street field.AddressStepandAdditionalDetailsSteppass that margin ascontainerStylesinstead, so they keep their current look. A newcityContainerStylesprop keeps the city 24px below the street by default, and DynamicForm sets it to 16px.daterenderer setswrapperStyle={styles.mv0}onDatePicker, and adjusts the push row picker margins to match other push rows.TabsAdapterdrops its own bottom margin and clears theTabSelectorBasecontent padding withcontentContainerStyles.DynamicFormFieldRowadds the bottom margin under a prompt label only when the row is not a menu row.Quick fix, not the full solution
AddressFormFieldsmargin it needed. The root cause is wider: many shared form inputs (address fields, date picker, tab selector, radio buttons) set their own outer margins, so every form that uses them has to fight those margins.Fixed Issues
$ https://github.com/Expensify/Expensify/issues/696486
PROPOSAL:
Tests
The flow needs an account on the
wiseReimbursementsbeta with an eligible bank account (USD, business, open, not on Corpay).Please expand this if you don't have access to such an account:
Without an account on the beta
Paste this in the browser console (web) or run it through the JS debugger (native):
123456789as the SSN, upload an image as the ID and press NextmainmainOffline tests
N/A - this PR only changes styles, there are no API or Onyx changes.
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)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.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Storybook stories on web (Chrome).
Changed
Business representative form (reported in the comment)
Tabs, radio buttons and amount
All field types
Bank account flow
Flat fields flow
Amount with currency
Unchanged (pixel-identical)
Business onboarding flow
Yes / No question
Owners list
`AddressStep` (outside DynamicForm)
Wallet additional details (outside DynamicForm)