Skip to content

Commit

Permalink
Fix accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
zsmb13 committed Jan 30, 2025
1 parent 1e4f241 commit ba2e165
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import androidx.compose.animation.core.tween
import androidx.compose.foundation.Image
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
Expand Down Expand Up @@ -183,7 +184,13 @@ private fun ThemeBox(
) {
Column(
horizontalAlignment = Alignment.CenterHorizontally,
modifier = modifier.semantics(mergeDescendants = true) {},
modifier = modifier
.clickable(
onClick = onClick,
indication = null,
interactionSource = remember { MutableInteractionSource() },
)
.semantics(mergeDescendants = true) {},
) {
Box(
contentAlignment = Alignment.Center,
Expand All @@ -205,7 +212,6 @@ private fun ThemeBox(
shape = RoundedCornerShape(8.dp)
)
.clip(RoundedCornerShape(8.dp))
.clickable(onClick = onClick)
.heightIn(max = 112.dp)
.aspectRatio(1f)
) {
Expand Down

0 comments on commit ba2e165

Please sign in to comment.