aria-required-parent-matches.js 249 B

12345678
  1. import { requiredContext, getExplicitRole } from '../commons/aria';
  2. function ariaRequiredParentMatches(node, virtualNode) {
  3. const role = getExplicitRole(virtualNode);
  4. return !!requiredContext(role);
  5. }
  6. export default ariaRequiredParentMatches;