From a950bdef63c8a24f5c70c8ba86500c016e8f5cd7 Mon Sep 17 00:00:00 2001 From: sangikhan29 <109125374+sangikhan29@users.noreply.github.com> Date: Wed, 21 Jun 2023 15:58:05 -0400 Subject: [PATCH] Revert "address test failures" This reverts commit 597f1de18c7741d40af9da4a689fba6f9e313d23. --- src/util/isInteractiveElement.js | 2 +- src/util/isInteractiveRole.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/isInteractiveElement.js b/src/util/isInteractiveElement.js index 3475d678c..be907ab27 100644 --- a/src/util/isInteractiveElement.js +++ b/src/util/isInteractiveElement.js @@ -27,7 +27,7 @@ const nonInteractiveRoles = new Set(roleKeys // 'toolbar' does not descend from widget, but it does support // aria-activedescendant, thus in practice we treat it as a widget. && name !== 'toolbar' - && !role.superClass.some((classes) => includes(classes, 'widget')) + && !role.superClass.some((classes) => includes(classes, 'widget', 'window')) ); }).concat( // The `progressbar` is descended from `widget`, but in practice, its diff --git a/src/util/isInteractiveRole.js b/src/util/isInteractiveRole.js index c603dd0a9..20513bd29 100644 --- a/src/util/isInteractiveRole.js +++ b/src/util/isInteractiveRole.js @@ -8,7 +8,7 @@ import flatMap from 'array.prototype.flatmap'; const roles = [...rolesMap.keys()]; const interactiveRoles = roles.filter((name) => ( !rolesMap.get(name).abstract - && rolesMap.get(name).superClass.some((klasses) => includes(klasses, 'widget', 'window')) + && rolesMap.get(name).superClass.some((klasses) => includes(klasses, 'widget', `window`)) )); // 'toolbar' does not descend from widget, but it does support