Skip to content

Commit ab58552

Browse files
committed
fix: copy to clipboard button label
1 parent 0454035 commit ab58552

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/mdx/Code/Code.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export const Code = ({ children, className, ...props }: ComponentProps<'pre'>) =
3434
<button
3535
className="absolute right-0 top-0 m-4 flex size-8 items-center justify-center rounded-md text-outline-variant transition-colors hover:text-outline"
3636
onClick={handleClick}
37+
aria-label="Copy to clipboard"
3738
>
3839
{copied ? <TbClipboardCheck className="size-6" /> : <TbClipboard className="size-6" />}
3940
</button>

0 commit comments

Comments
 (0)