CXTDT-591307 - DatePicker - Accessibility - #1 & #2

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2024-09-20 16:10:37 -05:00
parent ebbbffc86e
commit c39a89a3f3
2 changed files with 13 additions and 0 deletions

View File

@ -183,6 +183,15 @@ open class DatePicker: EntryFieldBase<String> {
showPopover()
}
}
containerView.accessibilityTraits = [.button]
containerView.bridge_accessibilityHintBlock = { [weak self] in
guard let self else { return "" }
return isReadOnly || !isEnabled
? ""
: isCalendarShowing ? "Expanded, Double tap to close" : "Collapsed, \(accessibilityHintText)"
}
}
open override func getFieldContainer() -> UIView {

View File

@ -1,3 +1,7 @@
1.0.74
----------------
- CXTDT-591307 - DatePicker - Accessibility - #1 & #2
1.0.73
----------------
- CXTDT-597984 - Table - Text wrap