mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Rework accessibility identifier comment
This commit is contained in:
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user