fix(ramps): fix Transak checkout background color mismatch — aggregator flow (TMCU-1087)#33394
fix(ramps): fix Transak checkout background color mismatch — aggregator flow (TMCU-1087)#33394georgewrmarshall wants to merge 1 commit into
Conversation
…or flow (TMCU-1087) Mirrors the fix from the native unified-buy flow to the legacy aggregator checkout. Overrides the component-library BottomSheet background (via the style prop, which is spread last into the sheet surface) and the WebView backgroundColor to match Transak's iframe theme colors (#1a1a1a dark / #ffffff light), sourced from new constants in app/styles/common.ts. Also removes the hardcoded backgroundColor from ErrorView so the container (BottomSheet or ScreenLayout) is always responsible for the surface color.
|
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. |
PR template — items to address before "Ready for review"Warnings — informational, address before merging:
See docs/readme/ready-for-review.md for the full Definition of Ready for Review. |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
These are all styling/visual changes within the Ramp checkout flow. SmokeMoney covers the ramps (buy/sell) flows including the Checkout view. No transaction confirmation logic, swap logic, or other flows are touched, so no additional dependent tags (SmokeConfirmations, SmokeSwap) are warranted beyond what the styling change itself requires. Performance Test Selection: |
|



Description
Follow-up to #33310 — applies the same Transak checkout background fix to the legacy aggregator flow (
app/components/UI/Ramp/Aggregator/Views/Checkout/).The component-library
BottomSheet(used in the aggregator) does not have atwClassNameprop like the MMDS version. Instead, thestyleprop is spread last into the sheet surface aftergetElevatedSurfaceColor(theme), so passingstyle={{ backgroundColor }}correctly overrides it.Changes:
transakBackgroundDark/transakBackgroundLighttoapp/styles/common.ts(same constants as fix(ramps): fix Transak checkout background color mismatch — native flow (TMCU-1087) #33310 — will resolve trivially on merge)Checkout.styles.tsto use Transak colors for the WebViewbackgroundColor(prevents load flash)style={transakBgStyle}to the WebViewBottomSheetonly — error states keep the default design-system surfacebackgroundColor: colors.background.defaultfromErrorViewso the container owns the surface colorChangelog
CHANGELOG entry: null
Related issues
Fixes: TMCU-1087
Manual testing steps
Screenshots/Recordings
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Low Risk
Scoped UI background overrides for the ramp checkout WebView; no payment, auth, or order-handling logic changes.
Overview
Aligns the legacy aggregator Transak checkout BottomSheet and WebView surfaces with Transak’s fixed iframe colors so dark/light mode no longer shows a visible seam around the embedded flow.
Adds
transakBackgroundDark/transakBackgroundLightinapp/styles/common.ts, applies them to the WebView style (load flash) andstyle={transakBgStyle}on the checkout BottomSheet only. Error paths keep the default design-system sheet;ErrorViewno longer sets its ownbackgroundColorso the parent owns the surface.Reviewed by Cursor Bugbot for commit 35277d6. Bugbot is set up for automated code reviews on this repo. Configure here.