We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a96c43d commit df04c88Copy full SHA for df04c88
src/class/HTMLCodeBlockElement.ts
@@ -108,8 +108,10 @@ export default class HTMLCodeBlockElement extends HTMLElement {
108
109
await copy(value);
110
111
+ this.#copyButton.classList.add('--copied');
112
this.#copyButton.textContent = 'Copied!';
113
key = window.setTimeout(() => {
114
+ this.#copyButton.classList.remove('--copied');
115
this.#copyButton.textContent = 'Copy';
116
}, 1500);
117
};
0 commit comments