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
This commit is contained in:
Yukio Nozawa authored and GitHub committed 2025-09-15 11:40:41 -07:00
1 parent fd3abdc68b
commit ac41b0dd33
4 files changed
+10 -4

No files matched your search

+5
View File
@@ -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.
@@ -57,7 +57,7 @@ const ServersToggleModal: React.FC = () => {
<Tooltip tipText="Manage MCP Servers" visible={isVisible ? false : undefined}>
<VSCodeButton
appearance="icon"
aria-label="MCP Servers"
aria-label={isVisible ? "Hide MCP Servers" : "Show MCP Servers"}
onClick={() => setIsVisible(!isVisible)}
style={{ padding: "0px 0px", height: "20px" }}>
<div className="flex items-center gap-1 text-xs whitespace-nowrap min-w-0 w-full">
@@ -92,6 +92,7 @@ const ServersToggleModal: React.FC = () => {
<div className="m-0 text-base font-semibold">MCP Servers</div>
<VSCodeButton
appearance="icon"
aria-label="Go to MCP server settings"
onClick={() => {
setIsVisible(false)
navigateToMcp("installed")
@@ -199,7 +199,7 @@ const ClineRulesToggleModal: React.FC = () => {
<Tooltip tipText="Manage Cline Rules & Workflows" visible={isVisible ? false : undefined}>
<VSCodeButton
appearance="icon"
aria-label="Cline Rules"
aria-label={isVisible ? "Hide Cline Rules & Workflows" : "Show Cline Rules & Workflows"}
onClick={() => setIsVisible(!isVisible)}
style={{ padding: "0px 0px", height: "20px" }}>
<div className="flex items-center gap-1 text-xs whitespace-nowrap min-w-0 w-full">
@@ -395,7 +395,7 @@ export const TabButton = ({
isActive: boolean
onClick: () => void
}) => (
<StyledTabButton isActive={isActive} onClick={onClick}>
<StyledTabButton aria-pressed={isActive} isActive={isActive} onClick={onClick}>
{children}
</StyledTabButton>
)
@@ -133,7 +133,7 @@ const NewRuleRow: React.FC<NewRuleRowProps> = ({ isGlobal, ruleType }) => {
<div className="flex items-center ml-2 space-x-2">
<VSCodeButton
appearance="icon"
aria-label="New rule file"
aria-label={ruleType === "workflow" ? "New workflow file..." : "New rule file..."}
onClick={(e) => {
e.stopPropagation()
setIsExpanded(true)