Skip to content

Commit 5cd4a1f

Browse files
committed
Updated rule name
1 parent 0b61ea2 commit 5cd4a1f

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

lib/commons/dom/create-grid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ class Grid {
457457
const colIndex = this.toGridIndex(x);
458458

459459
// a11y-engine-domforge change
460-
if (cache.get('ruleId') === 'zoom-text-overlap-viewport') {
460+
if (cache.get('ruleId') === 'resize-2x-zoom') {
461461
if (!isPointInRect({ y: rowIndex, x: colIndex }, this.boundaries)) {
462462
return [];
463463
}

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@ const getOverflowHiddenAncestors = memoize(
1919
const overflow = vNode.getComputedStylePropertyValue('overflow');
2020

2121
// a11y-engine-domforge change
22-
if (
23-
cache.get('ruleId') &&
24-
cache.get('ruleId') === 'zoom-text-overlap-viewport'
25-
) {
22+
if (cache.get('ruleId') && cache.get('ruleId') === 'resize-2x-zoom') {
2623
if (
2724
overflow.includes('hidden') ||
2825
overflow.includes('clip') ||

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const getVisibleChildTextRects = memoize(
3535
if (
3636
clientRects.length <= 0 &&
3737
cache.get('ruleId') &&
38-
cache.get('ruleId') === 'zoom-text-overlap-viewport'
38+
cache.get('ruleId') === 'resize-2x-zoom'
3939
) {
4040
return [];
4141
}

0 commit comments

Comments
 (0)