Skip to content

Commit

Permalink
Updated rule name
Browse files Browse the repository at this point in the history
  • Loading branch information
Utkarsh Chaudhary committed Oct 3, 2024
1 parent 0b61ea2 commit 5cd4a1f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/commons/dom/create-grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 [];
}
Expand Down
5 changes: 1 addition & 4 deletions lib/commons/dom/get-overflow-hidden-ancestors.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') ||
Expand Down
2 changes: 1 addition & 1 deletion lib/commons/dom/get-visible-child-text-rects.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 [];
}
Expand Down

0 comments on commit 5cd4a1f

Please sign in to comment.