AccessivePath

practice

Focus Trap

A focus trap is the technique of constraining keyboard focus to a contained element — typically a modal dialog — by cycling focus from the last focusable element back to the first when Tab is pressed at the boundary, and returning focus to the triggering element when the modal is dismissed.

About Focus Trap

Required for accessible modals. Libraries: focus-trap (vanilla JS), react-focus-lock, @radix-ui/react-focus-scope.

Where Focus Trap appears in a AccessivePath audit

Our AI auditors test concepts like Focus Trap as part of the WCAG 2.2 Level AA audit cycle — both via automated rule scanning and through screen-reader simulation and human pair review.

Stop guessing. Get the audit a Fortune 500 a11y team would have written.

Free audit on your live URL. No sign-up. IAAP-format report. Ready in hours.

founders@accessivepath.com · +977 9851094056