(element: Element)
| 45 | } |
| 46 | |
| 47 | export function isTabbable(element: Element): boolean { |
| 48 | return ( |
| 49 | element.matches(TABBABLE_ELEMENT_SELECTOR) && isElementVisible(element) && !isInert(element) |
| 50 | ); |
| 51 | } |
| 52 | |
| 53 | function isInert(element: Element): boolean { |
| 54 | let node: Element | null = element; |
no test coverage detected