Write HTML. Render video. Built for agents.
JavaScript aiai-agentsanimationclaude-codeffmpegframeworkgsaphtmlhtml-to-videomcpmotion-graphicspuppeteerrenderingtypescriptvideo-editor
fix(studio): drop aria-modal from the non-modal shortcuts popup
Miguel Angel Simon Sierra7f0cadcbb1f2
diff --git a/packages/studio/src/player/components/ShortcutsPanel.test.tsx b/packages/studio/src/player/components/ShortcutsPanel.test.tsxindex 95ab9c1ea7..31d5b0f9f7 100644--- a/packages/studio/src/player/components/ShortcutsPanel.test.tsx+++ b/packages/studio/src/player/components/ShortcutsPanel.test.tsx@@ -150,7 +150,9 @@ describe("ShortcutsPanel", () => {expect(panelId).not.toBeNull();expect(panel?.getAttribute("role")).toBe("dialog");- expect(panel?.getAttribute("aria-modal")).toBe("true");+ // Non-modal on purpose: focus is not trapped and the editor behind stays+ // operable, so aria-modal would lie to assistive tech about inertness.+ expect(panel?.getAttribute("aria-modal")).toBeNull();expect(panel?.id).toBe(panelId);});});diff --git a/packages/studio/src/player/components/ShortcutsPanel.tsx b/packages/studio/src/player/components/ShortcutsPanel.tsxindex 9eb5e72c7c..d36336e41e 100644--- a/packages/studio/src/player/components/ShortcutsPanel.tsx+++ b/packages/studio/src/player/components/ShortcutsPanel.tsx@@ -170,7 +170,9 @@ export const ShortcutsPanel = memo(function ShortcutsPanel({<divid={shortcutsPanelId}role="dialog"- aria-modal="true"+ // Deliberately NOT aria-modal. This is a non-modal disclosure: focus is+ // not trapped and the rest of the editor stays operable, so claiming+ // modality would make assistive tech treat the whole app as inert.className="absolute bottom-full right-0 mb-2 z-50 rounded-lg shadow-xl min-w-[220px] overflow-y-auto"style={{background: "#161618",