fix(ramp): default icon color on Build Quote payment pill#28398
Merged
Conversation
- Build Quote: pass selected payment method into PaymentMethodPill and render PaymentMethodIcon so the leading icon matches the method (generic card when unset).\n- Apple Pay: use branded mark assets; swap useAssetFromTheme order for PaymentMethodIcon so the mark contrasts on muted/section backgrounds (checkout button keeps original mapping).\n- Tests: PaymentMethodPill coverage; BuildQuote snapshots updated.\n- Docs: PR screenshot helper and after screenshot under docs/ramps/. Made-with: Cursor
Made-with: Cursor
- Add parseRampPaymentType so API strings only match SDK PaymentType values.\n- PaymentMethodIcon: switch on normalized type, handle RevPay, unknown types fall back to card (not wallet).\n- PaymentMethodPill: render PaymentMethodIcon only when type is known or API icons exist; type PaymentMethodForPill for icons.\n- Tests for parser and pill edge cases. Made-with: Cursor
- before: captured with paymentMethod prop temporarily omitted (generic card in pill).\n- after: current Build Quote with fix.\n- Update pull-request-screenshots.md; PR body references raw GitHub URLs. Made-with: Cursor
- Remove docs/ramps PNGs and pull-request-screenshots.md (keep images in PR description only).\n- Ignore docs/ramps/*.png so local captures are not re-committed. Made-with: Cursor
- Use FontAwesome apple for Apple Pay; ignore API apple-pay mark glyphs - Remove Apple Pay PNG from PaymentMethodIcon (restore main-style vectors) - PaymentMethodPill: type-only icons via parseRampPaymentType - Match main default icon fallback in PaymentMethodIcon switch Made-with: Cursor
Made-with: Cursor
Use the same PaymentMethodIcon + paymentType pattern as PaymentMethodListItem (primary icon color). Drop parseRampPaymentType from the pill path. Made-with: Cursor
- Revert PaymentMethodIcon and Aggregator snapshots to match origin/main - Remove parseRampPaymentType util + test (never on main) Unified Buy v2 pill parity remains in Views/BuildQuote + PaymentMethodPill only. Made-with: Cursor
PaymentMethodIcon on the pill used primary blue; keep parity with unselected rows in PaymentSelectionModal (icon.default). Selected row in the modal still uses primary. Made-with: Cursor
Contributor
|
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. |
Resolve conflicts: keep default icon color on PaymentMethodPill and matching BuildQuote snapshots (#131416 vs main primary). Made-with: Cursor
Contributor
🔍 Smart E2E Test Selection⏭️ Smart E2E selection skipped - draft PR All E2E tests pre-selected. |
Contributor
|
✅ E2E Fixture Validation — Schema is up to date |
|
imyugioh
approved these changes
Apr 4, 2026
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.



Description
PaymentMethodPillon the unified Buy Build Quote screen was passingcolors.primary.defaultintoPaymentMethodIcon, so the payment control used the same blue as a selected row inPaymentSelectionModal. Product intent is for that selector to use the default icon color (colors.icon.default), matching unselected list rows; the modal still uses primary only for the selected method.Also merged latest
origin/maininto this branch and resolved conflicts (kept default icon color and snapshot expectations).Changelog
CHANGELOG entry: Fixed the Build Quote payment method pill icon using the default icon tint instead of primary blue.
Related issues
Fixes:
Refs: #28392
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Low Risk
Low risk UI-only change that updates an icon tint and corresponding Jest snapshots; no business logic or data handling is modified.
Overview
Updates the Build Quote
PaymentMethodPillto renderPaymentMethodIconwith the theme’s default icon color (colors.icon.default) instead of the primary tint.Adjusts Build Quote Jest snapshots to reflect the new icon color in the payment method pill.
Reviewed by Cursor Bugbot for commit bc4f2ec. Bugbot is set up for automated code reviews on this repo. Configure here.