Fix tag borders
This commit is contained in:
parent
e7db248f36
commit
b717c14cdc
1 changed files with 4 additions and 4 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue