UNPKG

@logo-elements/overlay

Version:

<logo-elements-overlay> is a Web Component meant for internal use in Logo Elements web components to overlay items.

31 lines (27 loc) 1.01 kB
/** * @license * Copyright LOGO YAZILIM SANAYİ VE TİCARET A.Ş. All Rights Reserved. * * Save to the extent permitted by law, you may not use, copy, modify, * distribute or create derivative works of this material or any part * of it without the prior written consent of LOGO YAZILIM SANAYİ VE TİCARET A.Ş. Limited. * Any reproduction of this material must contain this notice. */ declare class FocusablesHelper { /** * Returns a sorted array of tabbable nodes, including the root node. * It searches the tabbable nodes in the light and shadow dom of the children, * sorting the result by tabindex. */ static getTabbableNodes(node: Node): HTMLElement[]; /** * Returns if a element is focusable. */ static isFocusable(element: HTMLElement): boolean; /** * Returns if a element is tabbable. To be tabbable, a element must be * focusable, visible, and with a tabindex !== -1. */ static isTabbable(element: HTMLElement): boolean; } export { FocusablesHelper };