@@ -29,6 +29,8 @@ import androidx.compose.runtime.LaunchedEffect
2929import androidx.compose.ui.Alignment
3030import androidx.compose.ui.Modifier
3131import androidx.compose.ui.res.stringResource
32+ import androidx.compose.ui.semantics.isTraversalGroup
33+ import androidx.compose.ui.semantics.semantics
3234import androidx.compose.ui.text.style.TextAlign
3335import androidx.compose.ui.tooling.preview.PreviewParameter
3436import androidx.compose.ui.unit.dp
@@ -178,7 +180,9 @@ private fun PollHistoryList(
178180 if (pollHistoryItems.isEmpty()) {
179181 item {
180182 Column (
181- modifier = Modifier .fillParentMaxSize().padding(bottom = 24 .dp),
183+ modifier = Modifier
184+ .fillParentMaxSize()
185+ .padding(bottom = 24 .dp),
182186 verticalArrangement = Arrangement .Center ,
183187 horizontalAlignment = Alignment .CenterHorizontally ,
184188 ) {
@@ -191,7 +195,9 @@ private fun PollHistoryList(
191195 text = emptyStringResource,
192196 style = ElementTheme .typography.fontBodyLgRegular,
193197 color = ElementTheme .colors.textSecondary,
194- modifier = Modifier .fillMaxWidth().padding(vertical = 24 .dp, horizontal = 16 .dp),
198+ modifier = Modifier
199+ .fillMaxWidth()
200+ .padding(vertical = 24 .dp, horizontal = 16 .dp),
195201 textAlign = TextAlign .Center ,
196202 )
197203
@@ -227,7 +233,10 @@ private fun PollHistoryItemRow(
227233 modifier : Modifier = Modifier ,
228234) {
229235 Surface (
230- modifier = modifier,
236+ modifier = modifier.semantics(mergeDescendants = true ) {
237+ // Allow the answers to be traversed by Talkback
238+ isTraversalGroup = true
239+ },
231240 border = BorderStroke (1 .dp, ElementTheme .colors.borderInteractiveSecondary),
232241 shape = RoundedCornerShape (size = 12 .dp)
233242 ) {
0 commit comments