diff --git a/app/components/Views/confirmations/components/UI/expandable/expandable.styles.ts b/app/components/Views/confirmations/components/UI/expandable/expandable.styles.ts index 1e558e97920..c9f6fca3a2e 100644 --- a/app/components/Views/confirmations/components/UI/expandable/expandable.styles.ts +++ b/app/components/Views/confirmations/components/UI/expandable/expandable.styles.ts @@ -1,6 +1,10 @@ import { StyleSheet } from 'react-native'; -import { Theme } from '../../../../../../util/theme/models'; +import { AppThemeKey, Theme } from '../../../../../../util/theme/models'; +import { + getElevatedSurfaceColor, + isPureBlackEnabled, +} from '../../../../../../util/theme/themeUtils'; const styleSheet = (params: { theme: Theme; @@ -8,6 +12,9 @@ const styleSheet = (params: { }) => { const { theme, vars } = params; const { isCompact } = vars; + const { colors } = theme; + const isPureBlackDark = + isPureBlackEnabled && theme.themeAppearance === AppThemeKey.dark; return StyleSheet.create({ container: { @@ -20,8 +27,12 @@ const styleSheet = (params: { padding: isCompact ? 0 : 16, marginBottom: isCompact ? 0 : 8, }, + // TODO(Pure Black): Remove once MMDS ships pure-black-aware surface tokens. + // Drop getElevatedSurfaceColor, isPureBlackEnabled, and AppThemeKey checks. modalContent: { - backgroundColor: theme.colors.background.section, + backgroundColor: getElevatedSurfaceColor(theme), + borderWidth: isPureBlackDark ? 1 : 0, + borderColor: isPureBlackDark ? colors.border.muted : undefined, paddingBottom: 34, borderTopLeftRadius: 8, borderTopRightRadius: 8,