From 7be0a14c468ae4090aacbf02648423c485f9a66e Mon Sep 17 00:00:00 2001 From: katiegoines Date: Wed, 26 Jun 2024 15:29:24 -0700 Subject: [PATCH] remove conditional in aria-describedby={codeId} for MDXCopyCodeButton --- src/components/MDXComponents/MDXCopyCodeButton.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'}