fix(confirmations): remove redundant useElevatedSurface from MMDS BottomSheets (TMCU-1044)#33166
fix(confirmations): remove redundant useElevatedSurface from MMDS BottomSheets (TMCU-1044)#33166georgewrmarshall wants to merge 1 commit into
Conversation
…tomSheets MMDS BottomSheet now handles pure-black elevated surface internally. Remove the parent useElevatedSurface() shim from confirmation-owned bottom sheets per TMCU-1044. Affected components: - AccountSelector - PayWithBottomSheet - AccountPickerRow - SendAlertModal Co-authored-by: George Marshall <georgewrmarshall@users.noreply.github.com>
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 UI/styling changes that affect the visual appearance of bottom sheets in confirmation, perps, and predict flows. While not functional logic changes, they could affect rendering and visual correctness of these flows. Tag selection rationale:
Performance Test Selection: |
|
|
@cursor update PR description to align with pull-request-template |
|
Updated the PR description on #33166 to match It now includes all required sections:
This should clear the PR template structural warning from |





Description
MMDS
BottomSheetnow handles pure-black elevated surface internally. This PR removes the redundantuseElevatedSurface()shim from confirmation-owned MMDS bottom sheets, which was previously passingtwClassName={surfaceClass}to override the sheet background.Why: The parent shim is no longer needed and can conflict with MMDS-owned surface handling during the pure-black rollout.
What changed: Removed
useElevatedSurfaceimport, hook usage, andtwClassNameprop from:app/components/Views/confirmations/components/AccountSelector/AccountSelector.tsxapp/components/Views/confirmations/components/modals/pay-with-bottom-sheet/pay-with-bottom-sheet.tsxapp/components/Views/confirmations/components/rows/account-picker-row/account-picker-row.tsxapp/components/Views/confirmations/components/send/send-alert-modal/send-alert-modal.tsxAlso removed obsolete
useElevatedSurfacemocks from predict/perps account picker row tests.Child
bg-defaultfixes (e.g. TMCU-994 pattern) remain out of scope — only the parent shim was removed.Changelog
CHANGELOG entry: null
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/TMCU-1044
Manual testing steps
Unit tests were also run:
AccountSelector.test.tsxpay-with-bottom-sheet.test.tsxsend-alert-modal.test.tsxpredict-account-picker-row.test.tsxperps-account-picker-row.test.tsxScreenshots/Recordings
N/A — visual change requires pure black preview QA on device/simulator; no before/after captures attached in this PR.
Before
N/A
After
N/A
Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist