Skip to content

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

fix(docs): add aria attributes and Escape handler to connect dropdown

Sushmitha Malleshafa1ef9af1e1
diff --git a/docs/components/connect-flow.tsx b/docs/components/connect-flow.tsx
index 244410aca..16beb8050 100644
--- a/docs/components/connect-flow.tsx
+++ b/docs/components/connect-flow.tsx
@@ -141,6 +141,9 @@ export function ConnectFlow({ children }: ConnectFlowProps) {
<button
type="button"
onClick={() => setDropdownOpen(!dropdownOpen)}
+ aria-expanded={dropdownOpen}
+ aria-haspopup="listbox"
+ onKeyDown={(e) => { if (e.key === 'Escape') setDropdownOpen(false); }}
className={`
flex items-center gap-2 rounded-lg border px-3 py-1.5 text-sm font-medium transition-all
focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-orange-500