Modal dialog example

Activate the “Open modal dialog” button to open a modal. It traps focus while open and can be closed with the Close button or the Escape key.

Confirm changes

This is a sample modal dialog. Keyboard focus moves into the dialog when it opens, and returns to the trigger when it closes.

Try using Tab and Shift+Tab to move through the controls.