Sha256: 4ee2b1cb3a52c464da887f8cb794adbe3580f5fa3348e6a05f89eef32aa842b3

Contents?: true

Size: 1.17 KB

Versions: 52

Compression:

Stored size: 1.17 KB

Contents

export interface IsInaccessibleOptions {
    getComputedStyle?: typeof window.getComputedStyle;
    /**
     * Can be used to return cached results from previous isSubtreeInaccessible calls.
     */
    isSubtreeInaccessible?: (element: Element) => boolean;
}
/**
 * Partial implementation https://www.w3.org/TR/wai-aria-1.2/#tree_exclusion
 * which should only be used for elements with a non-presentational role i.e.
 * `role="none"` and `role="presentation"` will not be excluded.
 *
 * Implements aria-hidden semantics (i.e. parent overrides child)
 * Ignores "Child Presentational: True" characteristics
 *
 * @param element
 * @param options
 * @returns {boolean} true if excluded, otherwise false
 */
export declare function isInaccessible(element: Element, options?: IsInaccessibleOptions): boolean;
export interface IsSubtreeInaccessibleOptions {
    getComputedStyle?: typeof window.getComputedStyle;
}
/**
 *
 * @param element
 * @param options
 * @returns {boolean} - `true` if every child of the element is inaccessible
 */
export declare function isSubtreeInaccessible(element: Element, options?: IsSubtreeInaccessibleOptions): boolean;
//# sourceMappingURL=is-inaccessible.d.ts.map

Version data entries

52 entries across 26 versions & 1 rubygems

Version Path
clapton-0.0.26 lib/clapton/javascripts/node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/is-inaccessible.d.ts
clapton-0.0.26 lib/clapton/javascripts/node_modules/dom-accessibility-api/dist/is-inaccessible.d.ts
clapton-0.0.25 lib/clapton/javascripts/node_modules/dom-accessibility-api/dist/is-inaccessible.d.ts
clapton-0.0.25 lib/clapton/javascripts/node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/is-inaccessible.d.ts
clapton-0.0.24 lib/clapton/javascripts/node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/is-inaccessible.d.ts
clapton-0.0.24 lib/clapton/javascripts/node_modules/dom-accessibility-api/dist/is-inaccessible.d.ts
clapton-0.0.23 lib/clapton/javascripts/node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/is-inaccessible.d.ts
clapton-0.0.23 lib/clapton/javascripts/node_modules/dom-accessibility-api/dist/is-inaccessible.d.ts
clapton-0.0.22 lib/clapton/javascripts/node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/is-inaccessible.d.ts
clapton-0.0.22 lib/clapton/javascripts/node_modules/dom-accessibility-api/dist/is-inaccessible.d.ts
clapton-0.0.21 lib/clapton/javascripts/node_modules/dom-accessibility-api/dist/is-inaccessible.d.ts
clapton-0.0.21 lib/clapton/javascripts/node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/is-inaccessible.d.ts
clapton-0.0.20 lib/clapton/javascripts/node_modules/dom-accessibility-api/dist/is-inaccessible.d.ts
clapton-0.0.20 lib/clapton/javascripts/node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/is-inaccessible.d.ts
clapton-0.0.19 lib/clapton/javascripts/node_modules/dom-accessibility-api/dist/is-inaccessible.d.ts
clapton-0.0.19 lib/clapton/javascripts/node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/is-inaccessible.d.ts
clapton-0.0.18 lib/clapton/javascripts/node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/is-inaccessible.d.ts
clapton-0.0.18 lib/clapton/javascripts/node_modules/dom-accessibility-api/dist/is-inaccessible.d.ts
clapton-0.0.17 lib/clapton/javascripts/node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/is-inaccessible.d.ts
clapton-0.0.17 lib/clapton/javascripts/node_modules/dom-accessibility-api/dist/is-inaccessible.d.ts