How do i make the children of this box to be reada...
# compose
a
How do i make the children of this box to be readable by a screen reader if they are wrapped in a clickable composable? Whenever i put the
clickable{}
modifier to the parent, i can no longer focus on the text with a screen reader
Code:
Copy code
Box(Modifier.fillMaxSize()
        .clickable(
            interactionSource = MutableInteractionSource(),
            indication = null,
            enabled = false
        ) {

        }
        ,
        contentAlignment = Alignment.Center) {
            Column {
                BasicText("1")
                BasicText("2")
                BasicText("3")
            }
    }
I found out something that works for my usecase. I replaced 'clickable' with detecting a tap:
Copy code
Modifier.pointerInput(Unit){
    detectTapGestures{
        // on tap
    }
}
and it works as expected now. still investigating if that breaks anything in terms of accessibility. will report back if i find any issues.