A mouse-only cart close action or focus behind a modal interrupts shopping.
Dialogs: keyboard access, Escape and focus return
Opening should move focus into the dialog; closing should return shoppers to a meaningful control.
Research context: W3C WAI · Modal dialog interaction ↗
Native dialog helps with modality. Still verify naming, initial focus, visible closing and nested dialogs.
Try the pattern
Task and expected result
- 01
Open zoom by keyboard and move between controls.
- 02
Press Escape and check the opener receives focus.
- 03
Open sizing from variant editing: closing should return to the correct dialog.
How to investigate value
Observe whether shoppers can select variants, correct errors and return from a dialog without assistance.
Watch for side effects
Hidden focus, keyboard traps, unexplained errors and controls covering content when zoomed.
This is a proposed investigation, not a measured result. Choose one hypothesis and define the audience before testing.
Build a measurement plan for this concept ↗