Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 22, 04:30 UTC
fix(docs): use correct ARIA menu roles for connect dropdown
- aria-haspopup="menu" (was "listbox") - role="menu" on popup container - role="menuitem" on each dropdown button Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sushmitha Mallesh committed
Mar 6, 2026 at 17:15 UTC
fb613a42f30b60f8bb5005850b78553339ad3143
1 file changed
+3
-2
docs/components/connect-flow.tsx
+3
-2
@@ -142,7 +142,7 @@ export function ConnectFlow({ children }: ConnectFlowProps) {
142
type="button"
143
onClick={() => setDropdownOpen(!dropdownOpen)}
144
aria-expanded={dropdownOpen}
145
- aria-haspopup="listbox"
145
+ aria-haspopup="menu"
146
onKeyDown={(e) => { if (e.key === 'Escape') setDropdownOpen(false); }}
147
className={`
148
flex items-center gap-2 rounded-lg border px-3 py-1.5 text-sm font-medium transition-all
@@ -169,11 +169,12 @@ export function ConnectFlow({ children }: ConnectFlowProps) {
169
</button>
170
171
{dropdownOpen && (
172
- <div className="absolute right-0 top-full z-50 mt-1 min-w-[220px] rounded-lg border border-fd-border bg-fd-card p-1 shadow-lg">
172
+ <div role="menu" className="absolute right-0 top-full z-50 mt-1 min-w-[220px] rounded-lg border border-fd-border bg-fd-card p-1 shadow-lg">
173
{others.map((client) => (
174
<button
175
key={client.id}
176
type="button"
177
+ role="menuitem"
178
onClick={() => {
179
setSelectedId(client.id);
180
setDropdownOpen(false);