updated tooltip info for accessibility

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2023-08-08 13:06:57 -05:00
parent 07268c1066
commit 816ee9f0aa

View File

@ -175,11 +175,13 @@ open class Tooltip: Control, TooltipLaunchable {
if label == nil {
label = content
}
if let label, !label.isEmpty {
accessibilityLabel = label
} else {
accessibilityLabel = "Tooltip"
}
accessibilityHint = isEnabled ? "Click to open Tooltip." : ""
accessibilityValue = "collapsed"
if let label {
accessibilityLabel = label
}
}
public static func accessibleText(for title: String?, content: String?, closeButtonText: String) -> String {