mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +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)
|
CompoundIcon(asset: Asset.Images.pollWinner)
|
||||||
.foregroundColor(.compound.iconAccentTertiary)
|
.foregroundColor(.compound.iconAccentTertiary)
|
||||||
.accessibilityLabel(L10n.a11yPollsWinningAnswer)
|
.accessibilityLabel(L10n.a11yPollsWinningAnswer)
|
||||||
|
|
||||||
Text(L10n.commonPollVotesCount(pollOption.votes))
|
Text(L10n.commonPollVotesCount(pollOption.votes))
|
||||||
.font(.compound.bodySMSemibold)
|
.font(.compound.bodySMSemibold)
|
||||||
.foregroundColor(.compound.textPrimary)
|
.foregroundColor(.compound.textPrimary)
|
||||||
}
|
}
|
||||||
|
.accessibilityElement(children: .combine)
|
||||||
} else {
|
} else {
|
||||||
Text(L10n.commonPollVotesCount(pollOption.votes))
|
Text(L10n.commonPollVotesCount(pollOption.votes))
|
||||||
.font(.compound.bodySM)
|
.font(.compound.bodySM)
|
||||||
|
|||||||
Reference in New Issue
Block a user