feat: edit the clipboard button to change border colour on success (#162)

Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
This commit is contained in:
Pranav M 2022-07-18 11:45:36 -04:00 committed by GitHub
parent e15e39155d
commit 1f3da4b829
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,10 @@ const addCopyButtons = () => {
() => {
button.blur();
button.innerHTML = svgCheck;
setTimeout(() => (button.innerHTML = svgCopy), 2000);
setTimeout(() => {
button.innerHTML = svgCopy
button.style.borderColor = ""
}, 2000);
},
(error) => (button.innerHTML = "Error")
);