From bf4c28019b8f88359528f04efd32d8f9c1408b88 Mon Sep 17 00:00:00 2001 From: Sumanth Nadigadda Date: Thu, 13 Oct 2022 21:17:33 +0530 Subject: [PATCH] Fix for CXTDT-331565, appending link disabled status to the accessibility text --- .../ListRightVariableTextLinkAllTextAndLinks.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/MVMCoreUI/Atomic/Molecules/DesignedComponents/List/RightVariable/ListRightVariableTextLinkAllTextAndLinks.swift b/MVMCoreUI/Atomic/Molecules/DesignedComponents/List/RightVariable/ListRightVariableTextLinkAllTextAndLinks.swift index 059a637f..e47cae46 100644 --- a/MVMCoreUI/Atomic/Molecules/DesignedComponents/List/RightVariable/ListRightVariableTextLinkAllTextAndLinks.swift +++ b/MVMCoreUI/Atomic/Molecules/DesignedComponents/List/RightVariable/ListRightVariableTextLinkAllTextAndLinks.swift @@ -71,10 +71,14 @@ func getAccessibilityMessage() -> String? { - guard let linkText = link.titleLabel?.text else { + guard var linkText = link.titleLabel?.text else { return eyebrowHeadlineBodyLink.getAccessibilityMessage() } + if !link.isEnabled, let accDisabled = MVMCoreUIUtility.hardcodedString(withKey:"AccDisabled") { + linkText = linkText + ", " + accDisabled + } + guard let label = eyebrowHeadlineBodyLink.getAccessibilityMessage() else { return linkText }