Преглед на файлове

add accessibility labels for html messages

cyberta преди 4 години
родител
ревизия
cdbfec08ca
променени са 2 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 1 0
      deltachat-ios/Chat/Views/Cells/BaseMessageCell.swift
  2. 1 0
      deltachat-ios/Controller/FullMessageViewController.swift

+ 1 - 0
deltachat-ios/Chat/Views/Cells/BaseMessageCell.swift

@@ -134,6 +134,7 @@ public class BaseMessageCell: UITableViewCell {
         button.titleLabel?.lineBreakMode = .byWordWrapping
         button.titleLabel?.textAlignment = .center
         button.addTarget(self, action: #selector(onFullMessageButtonTapped), for: .touchUpInside)
+        button.accessibilityLabel = String.localized("show_full_message")
         return button
     }()
 

+ 1 - 0
deltachat-ios/Controller/FullMessageViewController.swift

@@ -6,6 +6,7 @@ class FullMessageViewController: WebViewViewController {
 
     var loadButton: UIBarButtonItem {
         let button = UIBarButtonItem(barButtonSystemItem: UIBarButtonItem.SystemItem.refresh, target: self, action: #selector(showLoadOptions))
+        button.accessibilityLabel = String.localized("load_remote_content")
         button.tintColor = DcColors.primary
         return button
     }