Skip to content

Commit

Permalink
address test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
sangikhan29 committed Jun 21, 2023
1 parent d3d53b4 commit 597f1de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/util/isInteractiveElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', 'window'))
&& !role.superClass.some((classes) => includes(classes, 'widget'))
);
}).concat(
// The `progressbar` is descended from `widget`, but in practice, its
Expand Down
2 changes: 1 addition & 1 deletion src/util/isInteractiveRole.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 597f1de

Please sign in to comment.