From 5cd4a1f4855216e4fc61f1fe8ba24e1b55c55334 Mon Sep 17 00:00:00 2001 From: Utkarsh Chaudhary Date: Thu, 3 Oct 2024 17:58:13 +0530 Subject: [PATCH] Updated rule name --- lib/commons/dom/create-grid.js | 2 +- lib/commons/dom/get-overflow-hidden-ancestors.js | 5 +---- lib/commons/dom/get-visible-child-text-rects.js | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/commons/dom/create-grid.js b/lib/commons/dom/create-grid.js index c9e9fdbc..7af1b001 100644 --- a/lib/commons/dom/create-grid.js +++ b/lib/commons/dom/create-grid.js @@ -457,7 +457,7 @@ class Grid { const colIndex = this.toGridIndex(x); // a11y-engine-domforge change - if (cache.get('ruleId') === 'zoom-text-overlap-viewport') { + if (cache.get('ruleId') === 'resize-2x-zoom') { if (!isPointInRect({ y: rowIndex, x: colIndex }, this.boundaries)) { return []; } diff --git a/lib/commons/dom/get-overflow-hidden-ancestors.js b/lib/commons/dom/get-overflow-hidden-ancestors.js index 1a225212..79ca04ce 100644 --- a/lib/commons/dom/get-overflow-hidden-ancestors.js +++ b/lib/commons/dom/get-overflow-hidden-ancestors.js @@ -19,10 +19,7 @@ const getOverflowHiddenAncestors = memoize( const overflow = vNode.getComputedStylePropertyValue('overflow'); // a11y-engine-domforge change - if ( - cache.get('ruleId') && - cache.get('ruleId') === 'zoom-text-overlap-viewport' - ) { + if (cache.get('ruleId') && cache.get('ruleId') === 'resize-2x-zoom') { if ( overflow.includes('hidden') || overflow.includes('clip') || diff --git a/lib/commons/dom/get-visible-child-text-rects.js b/lib/commons/dom/get-visible-child-text-rects.js index 202ebeed..2cd01773 100644 --- a/lib/commons/dom/get-visible-child-text-rects.js +++ b/lib/commons/dom/get-visible-child-text-rects.js @@ -35,7 +35,7 @@ const getVisibleChildTextRects = memoize( if ( clientRects.length <= 0 && cache.get('ruleId') && - cache.get('ruleId') === 'zoom-text-overlap-viewport' + cache.get('ruleId') === 'resize-2x-zoom' ) { return []; }