From 7a2de230bfdd45fe54cd8e3e074479dd76232fdd Mon Sep 17 00:00:00 2001 From: DrSmoothl <1787882683@qq.com> Date: Mon, 18 May 2026 14:31:08 +0800 Subject: [PATCH] fix(webui): pass aria-checked as a string literal on switch buttons A11y checkers (axe-core / jsx-a11y) flag the boolean form because the ARIA spec defines aria-checked as the enum "true" | "false" | "mixed", not a boolean. React serialized the boolean to the right wire value at runtime, but the inspection layer keys off the JSX expression's static type. Switching to the explicit ternary silences both. --- packages/webui/src/components/config/node-edit-dialog.tsx | 2 +- packages/webui/src/components/config/node-summary-card.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/webui/src/components/config/node-edit-dialog.tsx b/packages/webui/src/components/config/node-edit-dialog.tsx index b1ca652b..ac6b0b63 100644 --- a/packages/webui/src/components/config/node-edit-dialog.tsx +++ b/packages/webui/src/components/config/node-edit-dialog.tsx @@ -372,7 +372,7 @@ function ToggleSwitch({ value, onChange, ariaLabel }: ToggleSwitchProps) {