From 0b8874508353fd1599cbcf71a985c1baf3a406bb Mon Sep 17 00:00:00 2001 From: Sajal Garg Date: Tue, 2 Dec 2025 16:37:26 +0530 Subject: [PATCH 1/2] Updated subtree-text behind feature flag --- lib/commons/text/subtree-text.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/commons/text/subtree-text.js b/lib/commons/text/subtree-text.js index 1325e19f..9d899df4 100644 --- a/lib/commons/text/subtree-text.js +++ b/lib/commons/text/subtree-text.js @@ -68,7 +68,7 @@ function skipByInlineOverflow(virtualNode) { } function appendAccessibleText(contentText, virtualNode, context) { - if (skipByInlineOverflow(virtualNode)) { + if (context.ignoreNativeTextAlternative && skipByInlineOverflow(virtualNode)) { return contentText; } From b87393c62d738ba01061412c0274073cdd09f3ce Mon Sep 17 00:00:00 2001 From: sajalg-bstack Date: Tue, 2 Dec 2025 11:09:02 +0000 Subject: [PATCH 2/2] :robot: Automated formatting fixes --- lib/commons/text/subtree-text.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/commons/text/subtree-text.js b/lib/commons/text/subtree-text.js index 9d899df4..239cec16 100644 --- a/lib/commons/text/subtree-text.js +++ b/lib/commons/text/subtree-text.js @@ -68,7 +68,10 @@ function skipByInlineOverflow(virtualNode) { } function appendAccessibleText(contentText, virtualNode, context) { - if (context.ignoreNativeTextAlternative && skipByInlineOverflow(virtualNode)) { + if ( + context.ignoreNativeTextAlternative && + skipByInlineOverflow(virtualNode) + ) { return contentText; }