mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Combine the poll winner icon and vote count into one accessibility element
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user