From d97cff3d5a9a3313742d3923c4f93240c2910798 Mon Sep 17 00:00:00 2001 From: akinshaywai Date: Tue, 28 Apr 2026 21:38:05 +0100 Subject: [PATCH] fix(a11y): add aria-live and aria-busy to code execution output in CodeBlock When code is executing, the output area transitions from empty to showing 'Running...' and then to STDOUT/STDERR results. Screen readers had no way to know about these updates. Added aria-live="polite" so changes are announced, and aria-busy={executing} to signal that content is still loading. Addresses WCAG 2.1 SC 4.1.3 (Status Messages). --- src/lib/components/chat/Messages/CodeBlock.svelte | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/components/chat/Messages/CodeBlock.svelte b/src/lib/components/chat/Messages/CodeBlock.svelte index 7e38592533..ccfef6d111 100644 --- a/src/lib/components/chat/Messages/CodeBlock.svelte +++ b/src/lib/components/chat/Messages/CodeBlock.svelte @@ -589,6 +589,8 @@ {#if executing || stdout || stderr || result || files}
{#if executing}