EN, Change language
Englishالعربية
OM-060

Move keyboard focus to the dialog when it opens, trap focus inside it until it is closed, and return focus to the triggering element when closed.

The requirement (from the design system site)

Move keyboard focus to the dialog when it opens, trap focus inside it until it is closed, and return focus to the triggering element when closed.

Why it matters to users

If focus stays on the page behind a dialog, a keyboard or screen-reader user never learns it opened and keeps tabbing through things they cannot see. If focus does not return to the button that opened it, they land at the top of the page and must find their place again.

How to fix it

Open each dialog on the site with the keyboard and check that focus moves into it, that Tab stays inside until it closes, and that focus returns to the button that opened it; record the result for each dialog. Then scan again.

Why it needs manual review

Needs interaction with the page (clicking or the keyboard); the scan never interacts with pages.

The rule on the design system site

Related rules

Dialog focus handling · Oman OM-060 | xfix