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:
@@ -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}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user