in src/rules/tabindex-no-positive.js [15:28]
because it is brittle (any focusable elements added to the page without an
explicit \`tabIndex\` value greater than zero will come last in the tab order) and
can easily result in a page which is extremely difficult to navigate, causing
accessibility problems.
`;
export default [{
msg: 'Avoid positive integer values for `tabIndex`.',
AX: 'AX_FOCUS_03',
test(_, props) {
const tabIndex = hasProp(props, 'tabIndex');
return !tabIndex || props.tabIndex <= 0;
}
}];