Allow one blocking layer at a time
Default
Rule. Show at most one blocking layer at a time, except a submenu inside a menu and one confirm dialog over a panel.
Why. Stacked layers hide content, confuse focus, and trap people.
When not. A confirm dialog may sit over a side panel. Close the confirm first.
- Show one toast at a time (see 6.16).
- Return focus to the control that opened the layer.
- Let Esc close the top layer only.
Do. One dialog on the screen. Nothing else is open behind it.
Don't. A second dialog sits on the first and hides part of it.
Do. A menu opens one submenu. Nothing else is open.
Don't. A second dialog hides part of the first.