#700·genoffice

docs: cutout/crop dialogs lack focus trap and dialog semantics

Author: aniruddhaadak80Created Sep 22, 2026Updated Sep 22, 2026

Problem

PictureDialogs modals have no role/aria-modal, no focus trap, and no initial focus (Tab escapes, screen readers get no dialog context), unlike MarginDialog/useModalKeys pattern.

Evidence

  • apps/docs/src/renderer/components/PictureDialogs.tsx:136-144,167,342-354,440
  • Compare apps/docs/src/renderer/components/MarginDialog.tsx:60,94-98

Suggested fix

useModalKeys(onCancel) + role=dialog aria-modal + aria-label on both modals.

Acceptance

  • Focus lands inside, Tab cycles, Esc closes; apply/cancel still work.