Skip to content

Commit

Permalink
fix: copy to clipboard ui update (#2000)
Browse files Browse the repository at this point in the history
  • Loading branch information
chdeskur authored Jan 13, 2025
1 parent 3e7642c commit 69227e2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const CopyToClipboardButton: React.FC<CopyToClipboardButton.Props> = ({
copyToClipboard?.();
}) ?? (
<FernButton
className={cn("fern-copy-button group", className)}
className={cn("fern-copy-button group backdrop-blur", className)}
disabled={copyToClipboard == null}
onClickCapture={(e) => {
onClick?.(e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`CopyToClipboardButton > renders correctly 1`] = `
<button
aria-disabled={false}
className="fern-copy-button group fern-button minimal normal rounded square"
className="fern-copy-button group backdrop-blur fern-button minimal normal rounded square"
data-state="closed"
data-testid="copy-btn"
onBlur={[Function]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ export const CodeBlockWithClipboardButton: React.FC<
<CopyToClipboardButton
className={cn(
"absolute z-20",
"z-10 opacity-0 transition group-hover/cb-container:opacity-100",
"right-1 top-1"
"z-10 opacity-0 backdrop-blur transition group-hover/cb-container:opacity-100",
"right-3 top-2"
)}
content={code}
/>
Expand Down

0 comments on commit 69227e2

Please sign in to comment.