Fixed
Status Update
Comments
jn...@google.com <jn...@google.com> #2
Fixed and scheduled for release in the release following Compose for Wear OS 1.0.0-beta03 probably on 15th June 2022.
If a developer wants to recreate the old behaviour (please do consider the a11y implications if doing so) then the following alternative code can be used.
Chip(
onClick = {},
label = {
Text(text = "Primary Label", style = MaterialTheme.typography.caption1)
},
modifier = Modifier.height(32.dp)
)
or the following if you want to make your own library function that will allow but not require the font to be set on the Text
Chip(
onClick = {},
label = {
CompositionLocalProvider(
LocalTextStyle provides MaterialTheme.typography.caption1,
) {
Text("Primary Label")
}
},
modifier = modifier.height(32.dp)
)
Description
Accessibility guidelineshttps://material.io/design/usability/accessibility.html#layout-and-typography recommend that tap/touch areas be no smaller that 48x48dp. The CompactChip in 1.0.0-beta03 of Wear Compose is only 32.dp tall and so doesn't meet these guidelines.
Add 8.dp of padding above and below the CompactChip to bring it into line with Accessibility guidelines.