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

perf(ui): improve web accessibility (#447)

- Make color and contrast meets WCAG 2 AA and above
- Fixes `aria-label` on button "copy link" in posts
This commit is contained in:
Cotes Chung
2023-08-02 05:18:35 +08:00
parent 0fd4c0bd0f
commit 37c976499e
10 changed files with 96 additions and 84 deletions

View File

@@ -22,14 +22,16 @@
</a>
{% endfor %}
<i
<button
id="copy-link"
class="fa-fw fas fa-link small"
aria-label="Copy link"
class="btn small"
data-bs-toggle="tooltip"
data-bs-placement="top"
title="{{ site.data.locales[include.lang].post.button.share_link.title }}"
data-title-succeed="{{ site.data.locales[include.lang].post.button.share_link.succeed }}"
>
</i>
<i class="fa-fw fas fa-link pe-none"></i>
</button>
</span>
</div>