mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
session verification request details is grouped and the avatar has its accessibility hidden
This commit is contained in:
@@ -92,7 +92,8 @@ final class AccessibilityTests: XCTestCase {
|
|||||||
|
|
||||||
/// Use this array to filter add specific filters to ignore specific issues for certain elements
|
/// Use this array to filter add specific filters to ignore specific issues for certain elements
|
||||||
private static let ignoredA11yIdentifiers: [String: [FilterType]] = [A11yIdentifiers.authenticationStartScreen.appVersion: [.auditType(.hitRegion)],
|
private static let ignoredA11yIdentifiers: [String: [FilterType]] = [A11yIdentifiers.authenticationStartScreen.appVersion: [.auditType(.hitRegion)],
|
||||||
A11yIdentifiers.pollView.summary: [.auditType(.hitRegion)]]
|
A11yIdentifiers.pollView.summary: [.auditType(.hitRegion)],
|
||||||
|
A11yIdentifiers.serverConfirmationScreen.serverPicker: [.compactDescription(notHumanReadableMessage)]]
|
||||||
}
|
}
|
||||||
|
|
||||||
private enum FilterType {
|
private enum FilterType {
|
||||||
|
|||||||
+2
@@ -32,6 +32,7 @@ struct SessionVerificationRequestDetailsView: View {
|
|||||||
contentID: details.senderProfile.userID,
|
contentID: details.senderProfile.userID,
|
||||||
avatarSize: .user(on: .sessionVerification),
|
avatarSize: .user(on: .sessionVerification),
|
||||||
mediaProvider: mediaProvider)
|
mediaProvider: mediaProvider)
|
||||||
|
.accessibilityHidden(true)
|
||||||
|
|
||||||
VStack(alignment: .leading, spacing: 0) {
|
VStack(alignment: .leading, spacing: 0) {
|
||||||
Text(details.senderProfile.displayName ?? details.senderProfile.userID)
|
Text(details.senderProfile.displayName ?? details.senderProfile.userID)
|
||||||
@@ -45,6 +46,7 @@ struct SessionVerificationRequestDetailsView: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.accessibilityElement(children: .combine)
|
||||||
.frame(maxWidth: .infinity, alignment: .leading)
|
.frame(maxWidth: .infinity, alignment: .leading)
|
||||||
.padding(12)
|
.padding(12)
|
||||||
.background(.compound.bgSubtleSecondary)
|
.background(.compound.bgSubtleSecondary)
|
||||||
|
|||||||
Reference in New Issue
Block a user