fix: local text style color in Button

This commit is contained in:
2023-11-18 23:39:57 +08:00
parent 07ca9c4a14
commit d86d23d499

View File

@@ -81,7 +81,7 @@ fun Button(
footer: @Composable () -> Unit = {},
content: @Composable RowScope.() -> Unit
) {
val localTextStyle = LocalTextStyle.current.copy(color = colors.contentColor)
val localTextStyle = LocalTextStyle.current.default(color = colors.contentColor)
val localProgressIndicatorColors = LocalProgressIndicatorColors.current.copy(
foregroundColor = colors.contentColor,
backgroundColor = Color.Transparent