Iframes with interactive content must not be excluded from the tab order

labels-and-names/frame-focusable-content · WCAG 2.1.1 · Level A

Iframes with interactive content must not be excluded from the tab order.

An <iframe> with tabindex="-1" removes the frame itself from the tab order, but focusable elements inside remain reachable with arrow keys on some browsers and are unreachable on others. Remove tabindex="-1" from the iframe, or add tabindex="-1" to every focusable element inside it. If the frame is decorative, add aria-hidden="true" instead.

Scan a page or repo for issues like this · All rules

Introduced in @accesslint/core v0.12.0