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

Improve SEO & accessibility on mode toggle element

This commit is contained in:
Cotes Chung
2021-12-07 18:17:20 +08:00
parent 415f11ecb8
commit c64e587335
8 changed files with 36 additions and 17 deletions

View File

@@ -54,9 +54,9 @@
<div class="sidebar-bottom mt-auto d-flex flex-wrap justify-content-center align-items-center">
{% unless site.theme_mode %}
<a id="mode-toggle-wrapper" tabindex="0" onclick="flipMode()">
<i class="mode-toggle fas fa-adjust"></i>
</a>
<button class="mode-toggle btn" aria-label="Switch Mode">
<i class="fas fa-adjust"></i>
</button>
{% if site.data.contact.size > 0 %}
<span class="icon-border"></span>