diff --git a/src/components/MDXComponents/MDXCopyCodeButton.tsx b/src/components/MDXComponents/MDXCopyCodeButton.tsx
index ad76cf72a58..8c49bda7188 100644
--- a/src/components/MDXComponents/MDXCopyCodeButton.tsx
+++ b/src/components/MDXComponents/MDXCopyCodeButton.tsx
@@ -36,7 +36,7 @@ export const MDXCopyCodeButton = ({
disabled={copied}
className="code-copy"
testId={testId}
- aria-describedby={title ? undefined : codeId}
+ aria-describedby={codeId}
>
{copied ? 'Copied!' : 'Copy'}