ONEAPP-5109 - Typography/Label - Accessibility iOS
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
5c15e4e010
commit
e646be1462
@ -227,6 +227,11 @@ open class Label: UILabel, ViewProtocol, UserInfoable {
|
||||
|
||||
open func updateAccessibility() {
|
||||
accessibilityLabel = text
|
||||
if isEnabled {
|
||||
accessibilityTraits.remove(.notEnabled)
|
||||
} else {
|
||||
accessibilityTraits.insert(.notEnabled)
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------
|
||||
|
||||
Loading…
Reference in New Issue
Block a user