Fix Pill not following the local text style

Closes #2009

(cherry picked from commit f8cb506137a3619f828dac94557b5448b2a7fa24)

# Conflicts:
#	CHANGELOG.md
This commit is contained in:
AntsyLich 2025-05-04 23:54:02 +06:00 committed by Jobobby04
parent de967ae149
commit 78f6a34339

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),
)
}