Combine the poll winner icon and vote count into one accessibility element

This commit is contained in:
Jürgen Wischer
2026-07-14 22:28:13 +02:00
committed by Mauro
parent 5e381e17ea
commit 3d84c611ae
@@ -37,11 +37,12 @@ struct PollOptionView: View {
CompoundIcon(asset: Asset.Images.pollWinner)
.foregroundColor(.compound.iconAccentTertiary)
.accessibilityLabel(L10n.a11yPollsWinningAnswer)
Text(L10n.commonPollVotesCount(pollOption.votes))
.font(.compound.bodySMSemibold)
.foregroundColor(.compound.textPrimary)
}
.accessibilityElement(children: .combine)
} else {
Text(L10n.commonPollVotesCount(pollOption.votes))
.font(.compound.bodySM)