nested-interactive-matches.js 317 B

12345678910111213
  1. import { getRole } from '../commons/aria';
  2. import standards from '../standards';
  3. function nestedInteractiveMatches(node, virtualNode) {
  4. const role = getRole(virtualNode);
  5. if (!role) {
  6. return false;
  7. }
  8. return !!standards.ariaRoles[role].childrenPresentational;
  9. }
  10. export default nestedInteractiveMatches;