test()

in src/rules/interactive-supports-focus.js [16:23]


    test(tagName, props) {
        const hidden = hiddenFromAT(props);
        const interactive = isInteractive(tagName, props);
        const onClick = listensTo(props, 'onClick');
        const tabIndex = props.tabIndex !== undefined;

        return hidden || interactive || !onClick || tabIndex;
    }