CXTDT-577463 - InputField - Accessibility - Issue #5

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2024-07-02 09:33:54 -05:00
parent 801b488eb4
commit 1e0b0279b7

View File

@ -42,6 +42,13 @@ extension InputField {
self.passwordActionType = nextPasswordActionType
inputField.setNeedsUpdate()
})
// set the accessibilityLabel
if let labelText = inputField.labelText {
inputField.actionTextLink.bridge_accessibilityLabelBlock = {
return "\(buttonText) \(labelText)"
}
}
} else {
passwordActionType = .show
}