update accessibility ids
This commit is contained in:
parent
01671438d5
commit
8721d8c5f3
|
@ -345,7 +345,7 @@ final class VisibleMessageCell: MessageCell, TappableLabelDelegate {
|
||||||
lastSearchText: lastSearchText
|
lastSearchText: lastSearchText
|
||||||
)
|
)
|
||||||
|
|
||||||
bubbleView.accessibilityIdentifier = "Message Body"
|
bubbleView.accessibilityIdentifier = "Message body"
|
||||||
bubbleView.accessibilityLabel = bodyTappableLabel?.attributedText?.string
|
bubbleView.accessibilityLabel = bodyTappableLabel?.attributedText?.string
|
||||||
bubbleView.isAccessibilityElement = true
|
bubbleView.isAccessibilityElement = true
|
||||||
|
|
||||||
|
@ -521,6 +521,9 @@ final class VisibleMessageCell: MessageCell, TappableLabelDelegate {
|
||||||
textColor: bodyLabelTextColor,
|
textColor: bodyLabelTextColor,
|
||||||
isOutgoing: (cellViewModel.variant == .standardOutgoing)
|
isOutgoing: (cellViewModel.variant == .standardOutgoing)
|
||||||
)
|
)
|
||||||
|
openGroupInvitationView.isAccessibilityElement = true
|
||||||
|
openGroupInvitationView.accessibilityIdentifier = "Community invitation"
|
||||||
|
openGroupInvitationView.accessibilityLabel = cellViewModel.linkPreview?.title
|
||||||
bubbleView.addSubview(openGroupInvitationView)
|
bubbleView.addSubview(openGroupInvitationView)
|
||||||
bubbleView.pin(to: openGroupInvitationView)
|
bubbleView.pin(to: openGroupInvitationView)
|
||||||
snContentView.addArrangedSubview(bubbleBackgroundView)
|
snContentView.addArrangedSubview(bubbleBackgroundView)
|
||||||
|
|
|
@ -456,8 +456,8 @@ class ThreadSettingsViewModel: SessionTableViewModel<ThreadSettingsViewModel.Nav
|
||||||
"DISAPPEARING_MESSAGES_SUBTITLE_OFF".localized()
|
"DISAPPEARING_MESSAGES_SUBTITLE_OFF".localized()
|
||||||
),
|
),
|
||||||
accessibility: Accessibility(
|
accessibility: Accessibility(
|
||||||
identifier: "\(ThreadSettingsViewModel.self).disappearing_messages",
|
identifier: "Disappearing messages",
|
||||||
label: "Disappearing messages"
|
label: "\(ThreadSettingsViewModel.self).disappearing_messages"
|
||||||
),
|
),
|
||||||
onTap: { [weak self] in
|
onTap: { [weak self] in
|
||||||
self?.transitionToScreen(
|
self?.transitionToScreen(
|
||||||
|
|
Loading…
Reference in New Issue