From 2b0826eafac1fd6a3aeadef8e9870d968b797610 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Wed, 8 Apr 2026 00:34:46 +0000 Subject: [PATCH] UX/A11y: Refactor SamplerVoicePanel sequencer lock toggle to accessible button - Replaces the visually hidden `` with a semantic ` + handleParamChange('lockToSequencer', !localLock)} + aria-hidden="true" + > + LOCK TO SEQUENCER NOTES + + {/* Divider */} diff --git a/src/components/__tests__/LiveKeyboardA11y.test.tsx b/src/components/__tests__/LiveKeyboardA11y.test.tsx index 5287f9ff..80dcbed1 100644 --- a/src/components/__tests__/LiveKeyboardA11y.test.tsx +++ b/src/components/__tests__/LiveKeyboardA11y.test.tsx @@ -19,7 +19,7 @@ describe('LiveKeyboard Accessibility', () => { expect(dialog).toHaveAttribute('aria-labelledby', 'keyboard-guide-title'); // 3. Check for Title ID matching aria-labelledby - const title = screen.getByText('PIANO MODE'); + const title = screen.getByText('PIANO KEYBOARD'); expect(title).toHaveAttribute('id', 'keyboard-guide-title'); // 4. Verify Initial Focus diff --git a/vite.config.ts b/vite.config.ts index 4275d27f..ab76ccb0 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -17,7 +17,7 @@ export default defineConfig({ }, }, optimizeDeps: { - exclude: ['onnxruntime-web'], + exclude: ['onnxruntime-web', 'emsdk'], }, build: { sourcemap: true,