Merge pull request #24672 from stanislav-c/fix-copy-to-clipboard-position

fix: correct position of the copy to clipboard button
This commit is contained in:
Sydney Achinger
2024-05-14 11:27:29 -04:00
committed by GitHub
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-techdocs': patch
---
Fixed bug in CopyToClipboardButton component where positioning of the "Copy to clipboard" button in techdocs code snippets was broken in some cases
@@ -67,7 +67,7 @@ const CopyToClipboardButton = ({ text }: CopyToClipboardButtonProps) => {
leaveDelay={1000}
>
<IconButton
style={{ color: 'inherit' }}
style={{ color: 'inherit', position: 'absolute' }}
className="md-clipboard md-icon"
onClick={handleClick}
>