From e646be1462b63a03a7f41df16d1f2986efc630a5 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Wed, 20 Sep 2023 08:24:03 -0500 Subject: [PATCH] ONEAPP-5109 - Typography/Label - Accessibility iOS Signed-off-by: Matt Bruce --- VDS/Components/Label/Label.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/VDS/Components/Label/Label.swift b/VDS/Components/Label/Label.swift index 76dceb19..3aa5f05d 100644 --- a/VDS/Components/Label/Label.swift +++ b/VDS/Components/Label/Label.swift @@ -227,6 +227,11 @@ open class Label: UILabel, ViewProtocol, UserInfoable { open func updateAccessibility() { accessibilityLabel = text + if isEnabled { + accessibilityTraits.remove(.notEnabled) + } else { + accessibilityTraits.insert(.notEnabled) + } } //--------------------------------------------------