fix(confirmations): use elevated surface on transaction confirmation BottomSheet#33378
fix(confirmations): use elevated surface on transaction confirmation BottomSheet#33378georgewrmarshall wants to merge 1 commit into
Conversation
…BottomSheet In Pure Black mode, confirm-component overrode the component-library BottomSheet elevated surface with background.default (#000000), causing the main transaction confirmation sheet to appear flat black. - Remove bottomSheetDialogSheet bg-default override so BottomSheet owns the elevated surface color - Use getElevatedSurfaceColor for full-screen flatContainer and spinnerContainer - Add unit tests for elevated surface styles Fixes: https://consensyssoftware.atlassian.net/browse/TMCU-1126 Part of: https://consensyssoftware.atlassian.net/browse/TMCU-622 Co-authored-by: George Marshall <georgewrmarshall@users.noreply.github.com>
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
The changes affect the visual appearance of the confirmation modal/sheet UI. No functional logic is changed - no state management, no transaction processing, no API calls. However, since the
No other tags are needed since:
Performance Test Selection: |
|



Description
In Pure Black mode, the main transaction confirmation bottom sheet (
Confirm/confirm-component) passedbackground.default(#000000) viabottomSheetDialogSheet, overriding the component-libraryBottomSheetelevated surface. The sheet appeared as flat black while info sections inside usedbackground.muted, producing a visible surface mismatch.This change:
bottomSheetDialogSheetbg-defaultoverride so theBottomSheetowns the elevated surface color (getElevatedSurfaceColor)flatContainerandspinnerContainerto usegetElevatedSurfaceColor(theme), matching other confirmation bottom sheets (e.g.gas-fee-token-modal,edit-spending-cap-modal)Part of the Pure Black Hex Background Schema epic (TMCU-622).
Changelog
CHANGELOG entry: null
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/TMCU-1126
Manual testing steps
N/A — Pure Black mode requires device/simulator testing with the feature flag enabled; verified via unit test asserting
getElevatedSurfaceColoris used for full-screen container styles.Screenshots/Recordings
Before
User-provided screenshot: transaction confirmation bottom sheet with flat #000000 background behind elevated info sections.
After
N/A — requires Pure Black mode on device/simulator.
Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an examplePre-merge reviewer checklist