fix(pure-black): migrate confirmation Expandable to MMDS BottomSheet#33160
fix(pure-black): migrate confirmation Expandable to MMDS BottomSheet#33160georgewrmarshall wants to merge 3 commits into
Conversation
The Advanced details bottom sheet (and other confirmation expandable sections) used the legacy BottomModal with a hardcoded bg-section background. In Pure Black theme this caused a contrast mismatch against the surrounding page. Replace BottomModal with MMDS BottomSheet, which applies bg-alternative automatically in Pure Black mode. Fixes TMCU-1059 (part of TMCU-622) Co-authored-by: George Marshall <georgewrmarshall@users.noreply.github.com>
Co-authored-by: George Marshall <georgewrmarshall@users.noreply.github.com>
Co-authored-by: George Marshall <georgewrmarshall@users.noreply.github.com>
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: The
The change replaces
CHANGELOG confirms this is a fix: "Fixed Advanced details bottom sheet background in Pure Black theme by migrating confirmation expandable sheets to MMDS BottomSheet" No other tags are needed as the change is isolated to the confirmations expandable UI component. No performance impact expected. Performance Test Selection: |
|



Description
The Advanced details bottom sheet in the send/confirmation flow used the legacy
BottomModalwrapper with a hardcodedbg-sectionbackground (theme.colors.background.section). In Pure Black theme, this caused the sheet surface to blend with the surrounding page instead of using the elevatedbg-alternativetoken.This PR migrates the shared
Expandableconfirmation component fromBottomModalto the MMDSBottomSheetfrom@metamask/design-system-react-native. The design-system component appliesbg-alternativeautomatically in Pure Black mode, fixing the contrast mismatch for Advanced details and all other expandable confirmation sections (e.g. signature message).Changes:
BottomModalwith MMDSBottomSheetwrapped in a transparentModalbg-sectionbackground from expandable sheet stylesBottomSheetRef.onCloseBottomSheet()for proper close animation viaHeaderStandardChangelog
CHANGELOG entry: Fixed Advanced details bottom sheet background in Pure Black theme by migrating confirmation expandable sheets to MMDS BottomSheet
Related issues
Fixes: TMCU-1059
Part of: TMCU-622
Manual testing steps
N/A for automated cloud-agent environment — visual QA on device/simulator recommended.
Screenshots/Recordings
Before
N/A — visual contrast issue visible on device with Pure Black enabled.
After
N/A — requires on-device visual QA in Pure Black dark mode.
Pre-merge author checklist
Performance checks (if applicable)
Pre-merge reviewer checklist