updated tooltip info for accessibility
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
07268c1066
commit
816ee9f0aa
@ -175,11 +175,13 @@ open class Tooltip: Control, TooltipLaunchable {
|
|||||||
if label == nil {
|
if label == nil {
|
||||||
label = content
|
label = content
|
||||||
}
|
}
|
||||||
|
if let label, !label.isEmpty {
|
||||||
|
accessibilityLabel = label
|
||||||
|
} else {
|
||||||
|
accessibilityLabel = "Tooltip"
|
||||||
|
}
|
||||||
accessibilityHint = isEnabled ? "Click to open Tooltip." : ""
|
accessibilityHint = isEnabled ? "Click to open Tooltip." : ""
|
||||||
accessibilityValue = "collapsed"
|
accessibilityValue = "collapsed"
|
||||||
if let label {
|
|
||||||
accessibilityLabel = label
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static func accessibleText(for title: String?, content: String?, closeButtonText: String) -> String {
|
public static func accessibleText(for title: String?, content: String?, closeButtonText: String) -> String {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user