From 6edc6e0dd6de70a87397fe85d9098f952a1f20b9 Mon Sep 17 00:00:00 2001 From: Helen Qin Date: Thu, 2 Mar 2023 03:22:50 +0000 Subject: [PATCH] [CredManUi] Apply surface1 to the whole bottom sheet. Before, the surface1 color was only applied to the top card which left the bottom corner color incorrect. Bug: 271168041 Test: manual (see bug for screenshot) Change-Id: Ic2b7f3b13563955e39b00611ba1a4b04aeac721c --- .../com/android/credentialmanager/common/ui/BottomSheet.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/CredentialManager/src/com/android/credentialmanager/common/ui/BottomSheet.kt b/packages/CredentialManager/src/com/android/credentialmanager/common/ui/BottomSheet.kt index c4d96ccf51f8a..52697b382e67e 100644 --- a/packages/CredentialManager/src/com/android/credentialmanager/common/ui/BottomSheet.kt +++ b/packages/CredentialManager/src/com/android/credentialmanager/common/ui/BottomSheet.kt @@ -39,7 +39,9 @@ fun ModalBottomSheet( skipHalfExpanded = true ) ModalBottomSheetLayout( - sheetBackgroundColor = MaterialTheme.colorScheme.surface, + sheetBackgroundColor = MaterialTheme.colorScheme.surfaceColorAtElevation( + ElevationTokens.Level1 + ), modifier = Modifier.background(Color.Transparent), sheetState = state, sheetContent = sheetContent,