jargon

Frontend & browser·Accessibility and semantics

you opened the dialog and moved focus into it, then put focus back on the button when it closed.

Focus management

Deliberately moving keyboard focus so it follows what just happened, and restoring it when the interaction ends. Every overlay, route change and dynamically inserted region needs it, because otherwise focus stays where it was and a keyboard user is somewhere the page is no longer showing. Losing focus to the document body is the specific failure, and it drops the user back at the top of the page.

Commonly confused with