@devries-cameron20 / composio-1 / commits / ca8f87207
Fork 0

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

docs: fix innerText on hidden element — use sr-only instead of hidden

Cursor Bugbot correctly flagged that `innerText` on a `display: none` element falls back to `textContent`, losing line breaks. Using `sr-only` keeps the element rendered (position: absolute, 1px) so `innerText` preserves formatting. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Sushmitha Mallesh committed Mar 6, 2026 at 23:48 UTC ca8f87207e195dbab0e06a6a1956239f00aa4c77
1 file changed +1 -1
docs/components/quickstart/prompt-banner.tsx
+1 -1
@@ -114,7 +114,7 @@ export function PromptBanner({ children }: PromptBannerProps) {
114 </div>
115 </div>
116 {/* Hidden prompt content for copy button */}
117 - <div ref={contentRef} className="hidden">{children}</div>
117 + <div ref={contentRef} className="sr-only">{children}</div>
118 </div>
119 );
120 }