From 543c8ea17617e35891e5a20f6493c58fd0149c82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patryk=20Mi=C5=9B?= Date: Fri, 15 Aug 2025 14:05:10 +0200 Subject: [PATCH] Make ClickableText expose clickable semantics for accessibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patryk Miś --- .../grapheneos/info/ui/reusablecomposables/ClickableText.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/app/grapheneos/info/ui/reusablecomposables/ClickableText.kt b/app/src/main/kotlin/app/grapheneos/info/ui/reusablecomposables/ClickableText.kt index e306727..01def46 100644 --- a/app/src/main/kotlin/app/grapheneos/info/ui/reusablecomposables/ClickableText.kt +++ b/app/src/main/kotlin/app/grapheneos/info/ui/reusablecomposables/ClickableText.kt @@ -1,5 +1,6 @@ package app.grapheneos.info.ui.reusablecomposables +import androidx.compose.foundation.clickable import androidx.compose.foundation.gestures.detectTapGestures import androidx.compose.foundation.text.InlineTextContent import androidx.compose.material3.LocalContentColor @@ -61,7 +62,9 @@ fun ClickableText( Text( text = text, - modifier = modifier.then(pressIndicator), + modifier = modifier + .clickable(onClick = { }) + .then(pressIndicator), style = style.merge( color = textColor, fontSize = fontSize,