From c637329884be6593958c2a0186fee9ed3c8d83b7 Mon Sep 17 00:00:00 2001 From: DrSmoothl <1787882683@qq.com> Date: Thu, 18 Jun 2026 15:48:21 +0800 Subject: [PATCH] fix(webui): a11y for debug page controls (match project standard) Adversarial pass (MINOR): the new Segmented/IconBtn regressed a11y vs the project's existing Segmented. Add role=radiogroup/radio + aria-checked to the segmented control, type="button" to all buttons (segmented, icon, execute, row toggle), aria-label to icon buttons, aria-expanded to the row toggle. --- packages/webui/src/components/pages/debug-page.tsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/webui/src/components/pages/debug-page.tsx b/packages/webui/src/components/pages/debug-page.tsx index 7dc63217..ff01a636 100644 --- a/packages/webui/src/components/pages/debug-page.tsx +++ b/packages/webui/src/components/pages/debug-page.tsx @@ -34,12 +34,15 @@ function Segmented({ value, onChange, options }: { }) { const id = useId(); return ( -
+
{options.map((o) => { const active = o.value === value; return (
)} - @@ -287,7 +290,7 @@ export function DebugPage() { function IconBtn({ onClick, title, children }: { onClick: () => void; title: string; children: ReactNode }) { return ( - @@ -333,7 +336,7 @@ function StreamRowItem({ row }: { row: StreamRow }) { return (
-