UNPKG

react-klasha

Version:

This is an reactJS library for implementing klasha payment gateway

18 lines (14 loc) 469 B
import getExplicitRole from '../aria/get-explicit-role'; const rangeRoles = ['progressbar', 'scrollbar', 'slider', 'spinbutton']; /** * Determines if an element is an aria range element * @method isAriaRange * @memberof axe.commons.forms * @param {VirtualNode|Element} node Node to determine if aria range * @returns {Bool} */ function isAriaRange(node) { const role = getExplicitRole(node); return rangeRoles.includes(role); } export default isAriaRange;