Skip to content

Commit c550c19

Browse files
katiekleinkatiegoines
andauthored
remove conditional in aria-describedby={codeId} for MDXCopyCodeButton (#7779)
Co-authored-by: katiegoines <katiegoines@gmail.com>
1 parent 3298bba commit c550c19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/MDXComponents/MDXCopyCodeButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const MDXCopyCodeButton = ({
3636
disabled={copied}
3737
className="code-copy"
3838
testId={testId}
39-
aria-describedby={title ? undefined : codeId}
39+
aria-describedby={codeId}
4040
>
4141
<IconClipboard /> {copied ? 'Copied!' : 'Copy'}
4242
<VisuallyHidden>

0 commit comments

Comments
 (0)