Skip to content

Commit 8ed02d9

Browse files
committed
added accessibility properties to the editable fields
1 parent e56bbde commit 8ed02d9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

WordPress/Classes/Utility/WPImmuTableRows.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ struct EditableTextRow: ImmuTableRow {
9393
func configureCell(_ cell: UITableViewCell) {
9494
cell.textLabel?.text = title
9595
cell.detailTextLabel?.text = value
96+
cell.accessibilityLabel = title
97+
cell.accessibilityHint = value
9698
cell.accessoryType = .disclosureIndicator
9799
if accessoryImage != nil {
98100
cell.accessoryView = UIImageView(image: accessoryImage)
@@ -129,6 +131,9 @@ struct TextRow: ImmuTableRow {
129131
func configureCell(_ cell: UITableViewCell) {
130132
cell.textLabel?.text = title
131133
cell.detailTextLabel?.text = value
134+
cell.accessibilityLabel = title
135+
cell.accessibilityHint = value
136+
132137
cell.selectionStyle = .none
133138

134139
WPStyleGuide.configureTableViewCell(cell)

0 commit comments

Comments
 (0)