File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -58,13 +58,18 @@ export default function CopyForLLMButton() {
5858 ) : (
5959 < ClipboardCopyIcon width = "24" height = "24" />
6060 ) }
61- < span className = "text-sm leading-none" > { copied ? 'Copied' : 'Copy for LLM' } </ span >
61+ { /* Visually hidden text for screen readers */ }
62+ < span className = "sr-only" > { copied ? 'Copied' : 'Copy for LLM' } </ span >
6263 </ button >
6364
6465 { showToast &&
6566 typeof document !== 'undefined' &&
6667 createPortal (
67- < div className = "fixed bottom-4 left-1/2 -translate-x-1/2 bg-[var(--gray-2)] text-[var(--gray-12)] border border-[var(--gray-a4)] px-4 py-2 rounded shadow-lg z-50" >
68+ < div
69+ role = "status"
70+ aria-live = "polite"
71+ className = "fixed bottom-4 left-1/2 -translate-x-1/2 bg-[var(--gray-2)] text-[var(--gray-12)] border border-[var(--gray-a4)] px-4 py-2 rounded shadow-lg z-50 transition-opacity duration-300"
72+ >
6873 Copied to clipboard
6974 </ div > ,
7075 document . body
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ export function DocPage({
8686 </ div >
8787 < div className = "overflow-hidden" >
8888 { leafNode && < Breadcrumbs leafNode = { leafNode } /> } { ' ' }
89- < div className = "flex items-center justify-end space-x -[5px]" >
89+ < div className = "ml-auto flex items-center gap -[5px]" >
9090 < CopyForLLMButton />
9191 < Link
9292 rel = "nofollow"
You can’t perform that action at this time.
0 commit comments