Skip to content

Commit

Permalink
fix getInteractives as well
Browse files Browse the repository at this point in the history
  • Loading branch information
sangikhan29 committed Jun 27, 2023
1 parent b396012 commit 91dd1cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions __mocks__/genInteractives.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,13 @@ const interactiveRoles = []
)
.filter((role) => (
!roles.get(role).abstract
&& roles.get(role).superClass.some((klasses) => includes(klasses, 'widget', 'window'))
&& roles.get(role).superClass.some((klasses) => includes(klasses, 'widget') || includes(klasses, 'window'))
));

const nonInteractiveRoles = roleNames
.filter((role) => (
!roles.get(role).abstract
&& !roles.get(role).superClass.some((klasses) => includes(klasses, 'widget', 'window'))
&& !roles.get(role).superClass.some((klasses) => includes(klasses, 'widget') || includes(klasses, 'window'))

// 'toolbar' does not descend from widget, but it does support
// aria-activedescendant, thus in practice we treat it as a widget.
Expand Down

0 comments on commit 91dd1cf

Please sign in to comment.