Files
github-actions[bot] 3d4e06fb76 deploy: a7fa320588
2026-06-05 14:28:20 +00:00

1.7 KiB

Accessibility

isHiddenFromAccessibility

function isHiddenFromAccessibility(element: ReactTestInstance | null): boolean {}

Also available as isInaccessible() alias for React Testing Library compatibility.

Checks if given element is hidden from assistive technology, e.g. screen readers.

:::note Like the isInaccessible function from DOM Testing Library, this function considers both accessibility elements and presentational elements (regular Views) to be accessible, unless they're hidden in terms of the host platform.

This covers only part of the ARIA notion of Accessibility Tree, as ARIA excludes both hidden and presentational elements from the Accessibility Tree. :::

For the scope of this function, element is inaccessible when it, or any of its ancestors, meets any of the following conditions:

Specifying accessible={false}, accessiblityRole="none", or importantForAccessibility="no" props does not cause the element to become inaccessible.