fix: correct position of the copy to clipboard button

Signed-off-by: Stanislav C <150145013+stanislav-c@users.noreply.github.com>
This commit is contained in:
Stanislav C
2024-05-07 14:08:41 +02:00
parent 58f8d33f3b
commit e40bd9a440
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}
>