Improve comment writing accessibility

This commit is contained in:
Bas Broek
2017-07-15 12:12:50 +02:00
parent 72e5494b13
commit dfcf817d22
2 changed files with 2 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ final class WriteButton: UIView {
backgroundColor = .clear
button.setImage(UIImage(named: "write")?.withRenderingMode(.alwaysTemplate), for: .normal)
button.accessibilityLabel = NSLocalizedString("Write a comment", comment: "")
button.tintColor = .white
button.clipsToBounds = true
addSubview(button)

View File

@@ -58,6 +58,7 @@ final class NewCommentViewController: UIViewController, UITextViewDelegate, AddC
placeholderLabel.textColor = Styles.Colors.Gray.light.color
placeholderLabel.text = NSLocalizedString("Leave a comment", comment: "")
placeholderLabel.accessibilityHint = NSLocalizedString("Placeholder text", comment: "")
placeholderLabel.sizeToFit()
placeholderLabel.font = Styles.Fonts.body
textView.addSubview(placeholderLabel)