Fix tag borders

This commit is contained in:
Jobobby04 2023-08-13 12:52:56 -04:00
parent e7db248f36
commit b717c14cdc

View File

@ -121,10 +121,10 @@ fun NamespaceTags(
onClick = { onClick(search) }, onClick = { onClick(search) },
border = borderDp?.let { border = borderDp?.let {
SuggestionChipDefaults.suggestionChipBorder(borderWidth = it) SuggestionChipDefaults.suggestionChipBorder(borderWidth = it)
}, } ?: SuggestionChipDefaults.suggestionChipBorder(),
borderM3 = borderDp?.let { borderM3 = borderDp?.let {
SuggestionChipDefaultsM3.suggestionChipBorder(borderWidth = it) SuggestionChipDefaultsM3.suggestionChipBorder(borderWidth = it)
}, } ?: SuggestionChipDefaultsM3.suggestionChipBorder(),
) )
} }
} }
@ -138,8 +138,8 @@ fun TagsChip(
modifier: Modifier = Modifier, modifier: Modifier = Modifier,
text: String, text: String,
onClick: (() -> Unit)?, onClick: (() -> Unit)?,
border: ChipBorder? = null, border: ChipBorder? = SuggestionChipDefaults.suggestionChipBorder(),
borderM3: ChipBorderM3? = null, borderM3: ChipBorderM3? = SuggestionChipDefaultsM3.suggestionChipBorder(),
) { ) {
CompositionLocalProvider(LocalMinimumInteractiveComponentEnforcement provides false) { CompositionLocalProvider(LocalMinimumInteractiveComponentEnforcement provides false) {
if (onClick != null) { if (onClick != null) {