Skip to content

Commit

Permalink
Fix copy-paste only "Picture" text in Figure was not using the CopyPa…
Browse files Browse the repository at this point in the history
…steOnly component

This should improve SR, print and browser compatibility
  • Loading branch information
MartijnHols committed Dec 10, 2024
1 parent 6701719 commit 0bbabfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/Figure.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const Figure = ({
...others
}: Props) => (
<StyledFigure className={className}>
<span style={{ fontSize: 0 }}>Picture:&nbsp;</span>
<CopyPasteOnly>Picture:&nbsp;</CopyPasteOnly>
<Link href={href} className="plain" {...others}>
{children}
</Link>
Expand Down

0 comments on commit 0bbabfc

Please sign in to comment.