Are there any official docs that state compose wil...
# compose-android
c
Are there any official docs that state compose will make touch targets 48.dp by default? I remember it coming up a few times in this slack but can't seem to find it.
k
Not Compose itself, but specifically the Material library that ships as part of Compose distribution
c
interesting! let me investigate further. but does this mean that anything on a m3 Surface will have min touch target size applied, or does it mean that all material components have the minimumInteractiveComponentSize modifier set to them?
k
Everything that uses that modifier directly or indirectly. Components such as buttons and chips use the
Surface
composable under the hood, so that's how they get that indirectly.
But only the
Surface
variant that gets the
onClick
lambda. So if you have M3's
Surface
and then inside just a
Box
with a clickable modifier, that won't apply the minimum touch size
c
thank you for teaching!