A sheet dialog is a modal dialog
Sheets are functionally the same as a modal dialog. The only reason there’s an entry for this is because people call it a sheet.
Variations
(Spoiler alert: These all have the same rules.)
Given that I am on a screen with a dialog sheet
When I use | I see/hear |
---|---|
Launch button | Focus visibly moves to the open sheet dialog itself |
Arrow keys | Content within the sheet dialog is browsed in logical order |
Tab | Focus visibly moves to interactive controls in the sheet dialog, starting with the first interactive control (typically close button) |
Escape | The sheet dialog closes and returns focus to the button that launched it |
Space | Any buttons are activated |
Enter | Any buttons or links are activated |
When I use | I hear |
---|---|
Swipe | Focus moves within the sheet dialog and doesn't enter the rest of the page. |
Doubletap | This typically activates most elements. |
Reads | I hear |
---|---|
Name | The sheet dialog describes its purpose or title on launch |
Role | It identifies itself as a dialog |
Group | When closed, focus returns to the launch button |
State | When open, content behind the modal remains inert |
A dialog sheet must meet WCAG principles:
Sheets are functionally the same as a modal dialog. The only reason there’s an entry for this is because people call it a sheet.
(Spoiler alert: These all have the same rules.)