mirror of
https://github.com/zhigang1992/GitHawk.git
synced 2026-05-10 04:44:14 +08:00
Improve comment writing accessibility
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user