Skip to main content

Accessible UI

Examples designed for inclusive use.

Modal dialog example

Use the button below to open a modal dialog. The dialog is closed by default and includes a clear close button.

What to expect

  • The dialog uses the native dialog element for semantics.
  • Focus moves to the dialog when it opens and returns to the trigger when it closes.
  • All controls have visible labels.

Confirm your action

Would you like to continue? This is a sample dialog with clear actions and helpful text.

Press Escape or choose an option below.