Some checks are pending
Deploy Volleyball CMS / deploy (push) Waiting to run
29 lines
1.2 KiB
JavaScript
29 lines
1.2 KiB
JavaScript
const $b4b717babfbb907b$var$focusableElements = [
|
|
'input:not([disabled]):not([type=hidden])',
|
|
'select:not([disabled])',
|
|
'textarea:not([disabled])',
|
|
'button:not([disabled])',
|
|
'a[href]',
|
|
'area[href]',
|
|
'summary',
|
|
'iframe',
|
|
'object',
|
|
'embed',
|
|
'audio[controls]',
|
|
'video[controls]',
|
|
'[contenteditable]:not([contenteditable^="false"])'
|
|
];
|
|
const $b4b717babfbb907b$var$FOCUSABLE_ELEMENT_SELECTOR = $b4b717babfbb907b$var$focusableElements.join(':not([hidden]),') + ',[tabindex]:not([disabled]):not([hidden])';
|
|
$b4b717babfbb907b$var$focusableElements.push('[tabindex]:not([tabindex="-1"]):not([disabled])');
|
|
const $b4b717babfbb907b$var$TABBABLE_ELEMENT_SELECTOR = $b4b717babfbb907b$var$focusableElements.join(':not([hidden]):not([tabindex="-1"]),');
|
|
function $b4b717babfbb907b$export$4c063cf1350e6fed(element) {
|
|
return element.matches($b4b717babfbb907b$var$FOCUSABLE_ELEMENT_SELECTOR);
|
|
}
|
|
function $b4b717babfbb907b$export$bebd5a1431fec25d(element) {
|
|
return element.matches($b4b717babfbb907b$var$TABBABLE_ELEMENT_SELECTOR);
|
|
}
|
|
|
|
|
|
export {$b4b717babfbb907b$export$4c063cf1350e6fed as isFocusable, $b4b717babfbb907b$export$bebd5a1431fec25d as isTabbable};
|
|
//# sourceMappingURL=isFocusable.module.js.map
|