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:
parent
c73bac4a3d
commit
09474da51b
@ -25,7 +25,10 @@ const addCopyButtons = () => {
|
|||||||
() => {
|
() => {
|
||||||
button.blur();
|
button.blur();
|
||||||
button.innerHTML = svgCheck;
|
button.innerHTML = svgCheck;
|
||||||
setTimeout(() => (button.innerHTML = svgCopy), 2000);
|
setTimeout(() => {
|
||||||
|
button.innerHTML = svgCopy
|
||||||
|
button.style.borderColor = ""
|
||||||
|
}, 2000);
|
||||||
},
|
},
|
||||||
(error) => (button.innerHTML = "Error")
|
(error) => (button.innerHTML = "Error")
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user