Skip to content

Commit ac9b3dc

Browse files
Release 5.11.0 (#171)
1 parent 5e38856 commit ac9b3dc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/commons/text/subtree-text.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ function skipByInlineOverflow(virtualNode) {
6868
}
6969

7070
function appendAccessibleText(contentText, virtualNode, context) {
71-
if (skipByInlineOverflow(virtualNode)) {
71+
if (
72+
context.ignoreNativeTextAlternative &&
73+
skipByInlineOverflow(virtualNode)
74+
) {
7275
return contentText;
7376
}
7477

0 commit comments

Comments
 (0)