mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-05 11:58:32 +00:00
accessibility improvements + tests refinement
This commit is contained in:
@@ -44,6 +44,7 @@ struct TimelineMediaPreviewDetailsView: View {
|
||||
contentID: item.sender.id,
|
||||
avatarSize: .user(on: .mediaPreviewDetails),
|
||||
mediaProvider: context.mediaProvider)
|
||||
.accessibilityHidden(true)
|
||||
|
||||
VStack(alignment: .leading, spacing: 0) {
|
||||
if let displayName = item.sender.displayName {
|
||||
|
||||
+1
@@ -71,6 +71,7 @@ struct TimelineMediaPreviewRedactConfirmationView: View {
|
||||
.aspectRatio(contentMode: .fill)
|
||||
}
|
||||
.clipShape(RoundedRectangle(cornerRadius: 8))
|
||||
.accessibilityHidden(true)
|
||||
}
|
||||
|
||||
VStack(alignment: .leading, spacing: 4) {
|
||||
|
||||
+5
@@ -85,6 +85,7 @@ struct MediaEventsTimelineScreen: View {
|
||||
ForEach(group.items) { item in
|
||||
VStack(spacing: 20) {
|
||||
Divider()
|
||||
.accessibilityHidden(true)
|
||||
|
||||
Button {
|
||||
tappedItem(item)
|
||||
@@ -92,7 +93,11 @@ struct MediaEventsTimelineScreen: View {
|
||||
viewForTimelineItem(item)
|
||||
.scaleEffect(CGSize(width: 1, height: -1))
|
||||
}
|
||||
.accessibilityRepresentation {
|
||||
viewForTimelineItem(item)
|
||||
}
|
||||
}
|
||||
.accessibilityElement(children: .combine)
|
||||
.padding(.horizontal, 16)
|
||||
}
|
||||
} footer: {
|
||||
|
||||
@@ -19,6 +19,7 @@ struct SpaceHeaderView: View {
|
||||
RoomAvatarImage(avatar: spaceRoomProxy.avatar,
|
||||
avatarSize: .room(on: .spaceHeader),
|
||||
mediaProvider: mediaProvider)
|
||||
.accessibilityHidden(true)
|
||||
|
||||
VStack(spacing: 8) {
|
||||
Text(title)
|
||||
|
||||
Reference in New Issue
Block a user