focus restoration

Returning keyboard focus to the element that opened an overlay, such as its trigger button, when the overlay closes.

In more detail

Without it focus falls to document.body and keyboard users must tab from the top of the page again. If the trigger no longer exists, focus should go to a sensible nearby element.

Related terms

Taught in

References