mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
improve threads summary view a11y
This commit is contained in:
@@ -108,6 +108,7 @@ struct TimelineThreadSummaryView: View {
|
|||||||
formattedBody: nil,
|
formattedBody: nil,
|
||||||
numberOfReplies: 42)
|
numberOfReplies: 42)
|
||||||
.redacted(reason: .placeholder)
|
.redacted(reason: .placeholder)
|
||||||
|
.accessibilityLabel(L10n.commonLoading)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -124,6 +125,7 @@ struct TimelineThreadSummaryView: View {
|
|||||||
HStack(spacing: 4) {
|
HStack(spacing: 4) {
|
||||||
CompoundIcon(\.threads, size: .xSmall, relativeTo: .compound.bodyXS)
|
CompoundIcon(\.threads, size: .xSmall, relativeTo: .compound.bodyXS)
|
||||||
.foregroundColor(.compound.iconSecondary)
|
.foregroundColor(.compound.iconSecondary)
|
||||||
|
.accessibilityLabel(L10n.commonThread)
|
||||||
|
|
||||||
Text(L10n.commonReplies(numberOfReplies))
|
Text(L10n.commonReplies(numberOfReplies))
|
||||||
.font(.compound.bodyXSSemibold)
|
.font(.compound.bodyXSSemibold)
|
||||||
@@ -134,6 +136,7 @@ struct TimelineThreadSummaryView: View {
|
|||||||
contentID: sender?.id,
|
contentID: sender?.id,
|
||||||
avatarSize: .user(on: .threadSummary),
|
avatarSize: .user(on: .threadSummary),
|
||||||
mediaProvider: context.mediaProvider)
|
mediaProvider: context.mediaProvider)
|
||||||
|
.accessibilityHidden(true)
|
||||||
|
|
||||||
Text(sender?.disambiguatedDisplayName ?? senderID)
|
Text(sender?.disambiguatedDisplayName ?? senderID)
|
||||||
.font(.compound.bodyXSSemibold)
|
.font(.compound.bodyXSSemibold)
|
||||||
@@ -144,6 +147,7 @@ struct TimelineThreadSummaryView: View {
|
|||||||
.font(.compound.bodyXS)
|
.font(.compound.bodyXS)
|
||||||
.foregroundColor(.compound.textSecondary)
|
.foregroundColor(.compound.textSecondary)
|
||||||
}
|
}
|
||||||
|
.accessibilityElement(children: .combine)
|
||||||
.lineLimit(1)
|
.lineLimit(1)
|
||||||
.padding(.vertical, 7.0)
|
.padding(.vertical, 7.0)
|
||||||
.padding(.horizontal, 8.0)
|
.padding(.horizontal, 8.0)
|
||||||
|
|||||||
Reference in New Issue
Block a user