session verification request details is grouped and the avatar has its accessibility hidden

This commit is contained in:
Mauro Romito
2025-07-21 14:35:53 +02:00
committed by Mauro
parent 2074743eec
commit 8845324e71
2 changed files with 4 additions and 1 deletions
@@ -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 {
@@ -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)