Accessibility
- A modal sheet is a
dialogwitharia-modal, a standard onecomplementary; the title names either. Without a title, give the web component anaria-label. - Opening a modal sheet focuses it, and closing it gives focus back.
Tabstays inside it and the page behind it is inert, in the top layer or not. Escapecloses a modal sheet from anywhere, and a standard one from inside it; a click on the scrim closes a modal sheet. Each can be turned off. The close button is named "Close".