OpenCut icon indicating copy to clipboard operation
OpenCut copied to clipboard

Command dialog title and description are rendered outside DialogContent

Open pidouga-dev opened this issue 5 months ago • 1 comments

Summary

The command dialog renders its sr-only DialogTitle and DialogDescription as siblings before DialogContent. Since the popup content is rendered through DialogContent, keeping the accessible title and description inside DialogContent should allow the dialog popup to associate with both values correctly.

I prepared a minimal patch in a public fork: https://github.com/pidouga-dev/OpenCut/tree/codex/command-dialog-description

Commit: https://github.com/pidouga-dev/OpenCut/commit/a8c65c94bcc477855485462001f722bf7c4dc57b

Patch

The change moves the existing sr-only DialogHeader into DialogContent without changing the title/description copy or visible UI.

Verification

  • bun --filter @opencut/web build
  • bun --filter @opencut/web test (currently fails during startup because the Cloudflare Vite plugin rejects the existing ssr resolve.external configuration)

Note: I could not open a PR because GitHub shows that this repository limits pull request creation to collaborators.

pidouga-dev avatar Jun 05 '26 23:06 pidouga-dev

I've also prepared this fix on my fork:

Moved the sr-only DialogHeader inside DialogContent in apps/web/src/components/ui/command.tsx so accessible title and description associate with the modal correctly.

killer1panda avatar Sep 08 '26 08:09 killer1panda