Rework accessibility identifier comment

This commit is contained in:
Stefan Ceriu
2026-08-18 11:15:46 +03:00
parent f3c8438bd8
commit 7ce16c5b2d
@@ -48,8 +48,7 @@ private struct TimelineItemSendInfoModifier: ViewModifier {
TimelineItemSendInfoLabel(sendInfo: sendInfo)
.accessibilityHidden(isAccessibilityHidden)
.contentShape(.rect)
// Only the labels with a tappable status get the identifier, so that
// plain timestamps don't produce ambiguous matches in UI tests.
// Only tappable labels get the identifier, plain timestamps would be ambiguous matches.
.accessibilityIdentifier(sendInfo.status != nil ? A11yIdentifiers.roomScreen.sendInfo : "")
// Tap gesture to avoid the message being detected as a button by VoiceOver
// (and the action shows a description that is already read to the user).