This modal demonstrates a simple accessible dialog. It traps focus while open, closes with the Escape key, by clicking the backdrop, or pressing the close button.
Try tabbing around to see focus remain within the dialog.
This example shows a modal dialog that is closed by default. Click the button below to open it.