Watch
Focus management 0:49
A 49-second explainer of Focus management, narrated over the same demo you can try yourself.
Try the interactive Focus management demo
What this video covers
Focus management means deliberately guiding where keyboard focus lands as the interface updates - moving it into a dialog when it opens, returning it to the trigger when it closes, or placing it on a new view or error. Done right, keyboard and screen-reader users stay in a sensible place; done wrong, they’re left stranded - either on invisible elements or back at the top after every action.
With focus managed, opening the dialog put you right inside it and closing it returned you to the exact button you came from - you never lost your place. Broken, the dialog opened but your focus was still stranded behind it, and closing dumped you at the top of the page. Same dialog; only where the focus went decided whether you stayed oriented.