Fix ButtonOutlined not having a transparent background
This commit is contained in:
parent
18969cc1df
commit
967d4975f7
1 changed files with 4 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue