From ac41b0dd332fddb60de8aaeb38e4b54d4698c199 Mon Sep 17 00:00:00 2001 From: Yukio Nozawa Date: Tue, 16 Sep 2025 03:40:41 +0900 Subject: [PATCH] Fix: Improve screen reader accessibility for MCP servers / Cline rules screens (#5861) * Add descriptive aria-labels to mcp server screen * Improve screen reader accessibility for cline rules page and its tabs * Fix: Have screen readers read the new rule / new workflow file labels consistently (previously it always announced new rule file regardless of the actual file type) * Add changeset --- .changeset/seven-pumas-worry.md | 5 +++++ webview-ui/src/components/chat/ServersToggleModal.tsx | 3 ++- .../src/components/cline-rules/ClineRulesToggleModal.tsx | 4 ++-- webview-ui/src/components/cline-rules/NewRuleRow.tsx | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 .changeset/seven-pumas-worry.md diff --git a/.changeset/seven-pumas-worry.md b/.changeset/seven-pumas-worry.md new file mode 100644 index 00000000..dbc8457d --- /dev/null +++ b/.changeset/seven-pumas-worry.md @@ -0,0 +1,5 @@ +--- +"claude-dev": patch +--- + +Screen readers properly announce buttons in the MCP servers / Cline rules / workflows screens. Reflects the current selection of Cline rules / workflows tab to screen readers. diff --git a/webview-ui/src/components/chat/ServersToggleModal.tsx b/webview-ui/src/components/chat/ServersToggleModal.tsx index f84a7b17..e93ca223 100644 --- a/webview-ui/src/components/chat/ServersToggleModal.tsx +++ b/webview-ui/src/components/chat/ServersToggleModal.tsx @@ -57,7 +57,7 @@ const ServersToggleModal: React.FC = () => { setIsVisible(!isVisible)} style={{ padding: "0px 0px", height: "20px" }}>
@@ -92,6 +92,7 @@ const ServersToggleModal: React.FC = () => {
MCP Servers
{ setIsVisible(false) navigateToMcp("installed") diff --git a/webview-ui/src/components/cline-rules/ClineRulesToggleModal.tsx b/webview-ui/src/components/cline-rules/ClineRulesToggleModal.tsx index e6236c47..e9211a03 100644 --- a/webview-ui/src/components/cline-rules/ClineRulesToggleModal.tsx +++ b/webview-ui/src/components/cline-rules/ClineRulesToggleModal.tsx @@ -199,7 +199,7 @@ const ClineRulesToggleModal: React.FC = () => { setIsVisible(!isVisible)} style={{ padding: "0px 0px", height: "20px" }}>
@@ -395,7 +395,7 @@ export const TabButton = ({ isActive: boolean onClick: () => void }) => ( - + {children} ) diff --git a/webview-ui/src/components/cline-rules/NewRuleRow.tsx b/webview-ui/src/components/cline-rules/NewRuleRow.tsx index 4f113e64..5bdebee9 100644 --- a/webview-ui/src/components/cline-rules/NewRuleRow.tsx +++ b/webview-ui/src/components/cline-rules/NewRuleRow.tsx @@ -133,7 +133,7 @@ const NewRuleRow: React.FC = ({ isGlobal, ruleType }) => {
{ e.stopPropagation() setIsExpanded(true)