Skip to content

Commit 8f19651

Browse files
committed
removed extra check
1 parent d21eac6 commit 8f19651

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/commons/dom/get-visible-child-text-rects.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@ const getVisibleChildTextRects = (node, options = {}) => {
5454
// a11y-engine-domforge change
5555
if (
5656
clientRects.length <= 0 &&
57-
((cache.get('ruleId') &&
58-
(cache.get('ruleId') === 'resize-2x-zoom' ||
59-
cache.get('ruleId') === 'color-contrast')) ||
57+
((cache.get('ruleId') && cache.get('ruleId') === 'resize-2x-zoom') ||
6058
checkNoVisibleRectsIdentified)
6159
) {
6260
return [];

0 commit comments

Comments
 (0)