CXTDT-577463 - InputField - Accessibility - #5 Password / Inline Action
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
1e0b0279b7
commit
0ee459946f
@ -68,6 +68,12 @@ extension InputField {
|
|||||||
actionModel.onClick(inputField)
|
actionModel.onClick(inputField)
|
||||||
}
|
}
|
||||||
inputField.actionTextLink.isHidden = false
|
inputField.actionTextLink.isHidden = false
|
||||||
|
// set the accessibilityLabel
|
||||||
|
if let labelText = inputField.labelText {
|
||||||
|
inputField.actionTextLink.bridge_accessibilityLabelBlock = {
|
||||||
|
return "\(actionModel.text) \(labelText)"
|
||||||
|
}
|
||||||
|
}
|
||||||
inputField.fieldStackView.setCustomSpacing(VDSLayout.space2X, after: inputField.statusIcon)
|
inputField.fieldStackView.setCustomSpacing(VDSLayout.space2X, after: inputField.statusIcon)
|
||||||
} else {
|
} else {
|
||||||
inputField.actionTextLink.isHidden = true
|
inputField.actionTextLink.isHidden = true
|
||||||
|
|||||||
@ -42,13 +42,6 @@ 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
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
1.0.70
|
1.0.70
|
||||||
----------------
|
----------------
|
||||||
- CXTDT-577463 - InputField - Accessibility - #1 Typing Feedback
|
- CXTDT-577463 - InputField - Accessibility - #1 Typing Feedback
|
||||||
|
- CXTDT-577463 - InputField - Accessibility - #5 Password / Inline Action
|
||||||
- CXTDT-560485 - Tilelet - Accessibility Icons
|
- CXTDT-560485 - Tilelet - Accessibility Icons
|
||||||
- DatePicker - Final logic for how the calendar shows.
|
- DatePicker - Final logic for how the calendar shows.
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user