Fix ButtonOutlined not having a transparent background

This commit is contained in:
Wolf Montwé 2023-04-26 10:35:42 +02:00
parent 18969cc1df
commit 967d4975f7
No known key found for this signature in database
GPG key ID: 6D45B21512ACBF72

View file

@ -5,6 +5,7 @@ import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.material.ButtonDefaults
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import app.k9mail.core.ui.compose.designsystem.atom.text.TextButton
@ -24,7 +25,9 @@ fun ButtonOutlined(
onClick = onClick,
modifier = modifier,
enabled = enabled,
colors = ButtonDefaults.outlinedButtonColors(),
colors = ButtonDefaults.outlinedButtonColors(
backgroundColor = Color.Transparent,
),
border = BorderStroke(
width = 1.dp,
color = if (enabled) {