Bläddra i källkod

add accessibility labels for html messages

cyberta 4 år sedan
förälder
incheckning
cdbfec08ca

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

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

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

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