From 402cde025b6eb6217d075b6990410c19321dbb4f Mon Sep 17 00:00:00 2001 From: Shinya Fujino Date: Sat, 5 Apr 2025 00:51:31 +0900 Subject: [PATCH 1/7] Enhance Sidebar component accessibility --- client/src/components/Sidebar.tsx | 58 +++++++++++++++++++++++++------ 1 file changed, 48 insertions(+), 10 deletions(-) diff --git a/client/src/components/Sidebar.tsx b/client/src/components/Sidebar.tsx index 19f8020..379cc48 100644 --- a/client/src/components/Sidebar.tsx +++ b/client/src/components/Sidebar.tsx @@ -103,14 +103,19 @@ const Sidebar = ({
- + setCommand(e.target.value)} @@ -132,8 +140,14 @@ const Sidebar = ({ />
- + setArgs(e.target.value)} @@ -144,8 +158,11 @@ const Sidebar = ({ ) : ( <>
- + setSseUrl(e.target.value)} @@ -157,6 +174,7 @@ const Sidebar = ({ variant="outline" onClick={() => setShowBearerToken(!showBearerToken)} className="flex items-center w-full" + aria-expanded={showBearerToken} > {showBearerToken ? ( @@ -167,8 +185,14 @@ const Sidebar = ({ {showBearerToken && (
- + setBearerToken(e.target.value)} @@ -187,6 +211,7 @@ const Sidebar = ({ onClick={() => setShowEnvVars(!showEnvVars)} className="flex items-center w-full" data-testid="env-vars-button" + aria-expanded={showEnvVars} > {showEnvVars ? ( @@ -201,6 +226,7 @@ const Sidebar = ({
{ @@ -243,6 +269,7 @@ const Sidebar = ({
setShowConfig(!showConfig)} className="flex items-center w-full" data-testid="config-button" + aria-expanded={showConfig} > {showConfig ? ( @@ -325,7 +353,10 @@ const Sidebar = ({ return (
-
{typeof configItem.value === "number" ? ( - + @@ -375,6 +407,7 @@ const Sidebar = ({ ) : ( { @@ -448,14 +481,19 @@ const Sidebar = ({ {loggingSupported && connectionStatus === "connected" && (
- +