mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Add an accessibility identifier to the timeline item send info
Lets UI tests (and accessibility tooling) target the tappable send-info label (timestamp / Sending failed) directly.
This commit is contained in:
committed by
Stefan Ceriu
parent
1aa9b29eb5
commit
404410b8a2
@@ -165,6 +165,7 @@ enum A11yIdentifiers {
|
|||||||
|
|
||||||
let messageComposer = "room-message_composer"
|
let messageComposer = "room-message_composer"
|
||||||
let sendButton = "room-send_button"
|
let sendButton = "room-send_button"
|
||||||
|
let sendInfo = "room-send_info"
|
||||||
|
|
||||||
let composerToolbar = ComposerToolbar()
|
let composerToolbar = ComposerToolbar()
|
||||||
|
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ private struct TimelineItemSendInfoModifier: ViewModifier {
|
|||||||
TimelineItemSendInfoLabel(sendInfo: sendInfo)
|
TimelineItemSendInfoLabel(sendInfo: sendInfo)
|
||||||
.accessibilityHidden(isAccessibilityHidden)
|
.accessibilityHidden(isAccessibilityHidden)
|
||||||
.contentShape(.rect)
|
.contentShape(.rect)
|
||||||
|
.accessibilityIdentifier(A11yIdentifiers.roomScreen.sendInfo)
|
||||||
// Tap gesture to avoid the message being detected as a button by VoiceOver
|
// 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).
|
// (and the action shows a description that is already read to the user).
|
||||||
.onTapGesture {
|
.onTapGesture {
|
||||||
|
|||||||
Reference in New Issue
Block a user