Skip to content

Commit

Permalink
[ANDROAPP-5679] Modify style for auto complete dropdown items (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
xavimolloy authored Oct 31, 2023
1 parent e805584 commit 389381a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.hisp.dhis.mobile.ui.designsystem.component

import androidx.compose.foundation.background
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.heightIn
import androidx.compose.foundation.layout.padding
Expand Down Expand Up @@ -29,6 +30,7 @@ import androidx.compose.ui.window.PopupProperties
import org.hisp.dhis.mobile.ui.designsystem.component.internal.RegExValidations
import org.hisp.dhis.mobile.ui.designsystem.theme.InternalSizeValues
import org.hisp.dhis.mobile.ui.designsystem.theme.Spacing
import org.hisp.dhis.mobile.ui.designsystem.theme.SurfaceColor
import java.util.Locale

/**
Expand Down Expand Up @@ -176,7 +178,7 @@ internal fun BasicTextInput(
)
if (expanded && !filteredList.isNullOrEmpty()) {
DropdownMenu(
modifier = Modifier.exposedDropdownSize(),
modifier = Modifier.exposedDropdownSize().background(SurfaceColor.SurfaceBright),
expanded = expanded,
onDismissRequest = { expanded = false },
offset = DpOffset(x = -16.dp, y = Spacing.Spacing12),
Expand Down

0 comments on commit 389381a

Please sign in to comment.