From de311452ec00002c9a51b2f41a4eb45e2c0bc142 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Ma=C5=A1a?= Date: Wed, 6 Sep 2023 14:32:52 +0200 Subject: [PATCH] Fix visibility of helper text --- .../frantisekmasa/wfrp_master/common/core/ui/forms/TextInput.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/commonMain/kotlin/cz/frantisekmasa/wfrp_master/common/core/ui/forms/TextInput.kt b/common/src/commonMain/kotlin/cz/frantisekmasa/wfrp_master/common/core/ui/forms/TextInput.kt index e99e6e021..ae04cb6b8 100644 --- a/common/src/commonMain/kotlin/cz/frantisekmasa/wfrp_master/common/core/ui/forms/TextInput.kt +++ b/common/src/commonMain/kotlin/cz/frantisekmasa/wfrp_master/common/core/ui/forms/TextInput.kt @@ -172,7 +172,7 @@ private fun TextInput( } } - if (showCharacterCount || helperText.isNullOrBlank()) { + if (showCharacterCount || !helperText.isNullOrBlank()) { CompositionLocalProvider(LocalContentAlpha provides ContentAlpha.medium) { Row { if (!helperText.isNullOrBlank()) {