Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
MVarshini committed Jun 7, 2023
1 parent 5f10ba8 commit be35409
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@ const ClipboardCopy = ({ copyText }) => {
const [isCopied, setIsCopied] = useState(false);

const copyTextToClipboard = async (text) => {
if ("clipboard" in navigator) {
return await navigator.clipboard.writeText(text);
} else {
return document.execCommand("copy", true, text);
}
"clipboard" in navigator
? await navigator.clipboard.writeText(text)
: document.execCommand("copy", true, text);
};

// onClick handler function for the copy button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
padding-top: 0;
}
}

.pf-c-clipboard-copy__group {
input {
background-color: transparent;
Expand Down

0 comments on commit be35409

Please sign in to comment.