Fix Pill not following the local text style
Closes #2009 (cherry picked from commit f8cb506137a3619f828dac94557b5448b2a7fa24) # Conflicts: # CHANGELOG.md
This commit is contained in:
parent
de967ae149
commit
78f6a34339
@ -51,12 +51,11 @@ fun Pill(
|
|||||||
contentColor: Color = MaterialTheme.colorScheme.onSurface,
|
contentColor: Color = MaterialTheme.colorScheme.onSurface,
|
||||||
fontSize: TextUnit = LocalTextStyle.current.fontSize,
|
fontSize: TextUnit = LocalTextStyle.current.fontSize,
|
||||||
) {
|
) {
|
||||||
val style = LocalTextStyle.current
|
|
||||||
Pill(
|
Pill(
|
||||||
text = text,
|
text = text,
|
||||||
modifier = modifier,
|
modifier = modifier,
|
||||||
color = color,
|
color = color,
|
||||||
contentColor = contentColor,
|
contentColor = contentColor,
|
||||||
style = MaterialTheme.typography.bodyMedium.copy(fontSize = fontSize),
|
style = LocalTextStyle.current.merge(fontSize = fontSize),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user