(element: Element, options?: {skipVisibilityCheck?: boolean})
| 37 | const TABBABLE_ELEMENT_SELECTOR = focusableElements.join(':not([hidden]):not([tabindex="-1"]),'); |
| 38 | |
| 39 | export function isFocusable(element: Element, options?: {skipVisibilityCheck?: boolean}): boolean { |
| 40 | return ( |
| 41 | element.matches(FOCUSABLE_ELEMENT_SELECTOR) && |
| 42 | !isInert(element) && |
| 43 | (options?.skipVisibilityCheck || isElementVisible(element)) |
| 44 | ); |
| 45 | } |
| 46 | |
| 47 | export function isTabbable(element: Element): boolean { |
| 48 | return ( |
no test coverage detected