1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-18 05:41:31 +00:00

Improve the UX of clipboard button

This commit is contained in:
Cotes Chung
2021-09-22 22:21:33 +08:00
parent abb548fcee
commit 1bb54096f4
5 changed files with 14 additions and 9 deletions

View File

@@ -133,7 +133,7 @@
{% assign _new_content = _new_content | append: _snippet
| append: '<div class="code-header">'
| append: _label
| append: '<button aria-label="copy" data-original-title="'
| append: '<button aria-label="copy" title-succeed="'
| append: site.data.locales[lang].post.button.copy_code.succeed
| append: '"><i class="far fa-clipboard"></i></button></div>'
| append: '<div class="highlight"><code>'