Skip to content

Commit 44c3c50

Browse files
committed
added color contrast cache
1 parent 8f19651 commit 44c3c50

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/commons/dom/get-overflow-hidden-ancestors.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ const getOverflowHiddenAncestors = memoize(
2929
}
3030
} else if (
3131
cache.get('ruleId') &&
32-
cache.get('ruleId') === 'reflow-4x-zoom-scroll' &&
32+
(cache.get('ruleId') === 'reflow-4x-zoom-scroll' ||
33+
cache.get('ruleId') === 'color-contrast') &&
3334
overflow.includes('hidden')
3435
) {
3536
ancestors.push(vNode);

0 commit comments

Comments
 (0)