Fix Pill not following the local text style

Closes #2009
This commit is contained in:
AntsyLich
2025-05-04 23:54:02 +06:00
parent 98230ed30f
commit f8cb506137
2 changed files with 2 additions and 2 deletions

View File

@@ -51,12 +51,11 @@ fun Pill(
contentColor: Color = MaterialTheme.colorScheme.onSurface,
fontSize: TextUnit = LocalTextStyle.current.fontSize,
) {
val style = LocalTextStyle.current
Pill(
text = text,
modifier = modifier,
color = color,
contentColor = contentColor,
style = MaterialTheme.typography.bodyMedium.copy(fontSize = fontSize),
style = LocalTextStyle.current.merge(fontSize = fontSize),
)
}