test()

in src/rules/hidden-uses-tabindex.js [17:23]


    test(tagName, props) {
        const hidden = hiddenFromAT(props);
        const interactive = isInteractive(tagName, props);
        const tabIndex = props.tabIndex === -1;

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