CXTDT-577463 - InputField - Accessibility - Issue #5
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
801b488eb4
commit
1e0b0279b7
@ -42,6 +42,13 @@ extension InputField {
|
|||||||
self.passwordActionType = nextPasswordActionType
|
self.passwordActionType = nextPasswordActionType
|
||||||
inputField.setNeedsUpdate()
|
inputField.setNeedsUpdate()
|
||||||
})
|
})
|
||||||
|
// set the accessibilityLabel
|
||||||
|
if let labelText = inputField.labelText {
|
||||||
|
inputField.actionTextLink.bridge_accessibilityLabelBlock = {
|
||||||
|
return "\(buttonText) \(labelText)"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
passwordActionType = .show
|
passwordActionType = .show
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user