-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
chore: fixes small styling bug in the buy menu #23556
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
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
…metamask-mobile into TRAM-2673-buy-menu-styling-fix
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsThe change to FundActionMenu.tsx is a purely cosmetic/styling modification. The diff shows:
This is a minimal UI styling change (adding padding via tailwind classes) that doesn't modify:
The FundActionMenu component is used in the Ramps (buy/sell) flow, as evidenced by:
Since this is a low-risk styling change that only affects the visual layout of the Fund Action Menu (adding vertical padding), running the
No other tags are impacted as this component is specifically part of the ramps/fund action flow and doesn't affect other wallet functionality. |
|




Description
This PR fixes inconsistent vertical padding in the Add Funds modal (FundActionMenu) that appears when users tap "Add funds" from the Wallet screen. The modal was showing tight spacing at the top (~8-10px) and smaller bottom padding, creating a visually unbalanced and compressed appearance.
Improvements:
Technical Changes:
ActionListItemcomponents in aBoxcomponent withpt-4 pb-4Tailwind classesPerpsModifyActionSheetChangelog
CHANGELOG entry: Fixed inconsistent vertical padding in Add Funds modal to improve visual consistency
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/TRAM-2673
https://consensyssoftware.atlassian.net/browse/TRAM-2898
Manual testing steps
Feature: Add Funds Modal Padding
Scenario: user opens Add Funds modal and verifies consistent padding
Given the user is on the Wallet screen
When user taps the "Add funds" button
Then the modal should display with 16px padding above the first item (Deposit)
And the modal should display with 16px padding below the last item (Withdraw)
And the top and bottom padding should be visually balanced
And the modal should not appear compressed or cut off
Scenario: user verifies padding consistency across different action configurations
Given the user opens the Add Funds modal
When the modal displays with different combinations of visible actions (Deposit, Buy, Sell)
Then the padding should remain consistent regardless of which actions are visible
And the spacing should match other modals in the app (e.g., token picker, settings sheets)## Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Adds consistent top/bottom padding in
FundActionMenuby wrapping action items with aBox(py-4).app/components/UI/FundActionMenu/FundActionMenu.tsx:BoxusingtwClassName="py-4"to add consistent top/bottom padding in the bottom sheet.Boxfrom@metamask/design-system-react-native.Written by Cursor Bugbot for commit 2ea9708. This will update automatically on new commits. Configure here.