1
0
Fork 0

use aria-label

This commit is contained in:
nanxiaobei 2023-02-25 02:04:03 +08:00
parent 773ce495a4
commit fe5feede2e

View file

@ -8,17 +8,15 @@
<div <div
class="btn-dark text-[0] ml-6 h-6 w-6 shrink-0 cursor-pointer {{ if site.Params.monoDarkIcon }}[background:url(./theme.svg)_left_center/cover_no-repeat] dark:invert{{ else }}[background:url(./theme.png)_left_center/_auto_theme('spacing.6')_no-repeat] [transition:_background-position_0.4s_steps(5)]{{ end }} dark:[background-position:right]" class="btn-dark text-[0] ml-6 h-6 w-6 shrink-0 cursor-pointer {{ if site.Params.monoDarkIcon }}[background:url(./theme.svg)_left_center/cover_no-repeat] dark:invert{{ else }}[background:url(./theme.png)_left_center/_auto_theme('spacing.6')_no-repeat] [transition:_background-position_0.4s_steps(5)]{{ end }} dark:[background-position:right]"
role="button" role="button"
> aria-label="Dark"
<span class="hidden">Dark</span> ></div>
</div>
</div> </div>
<div <div
class="btn-menu relative z-50 -mr-8 flex h-[5rem] w-[5rem] shrink-0 cursor-pointer flex-col items-center justify-center gap-2.5 lg:hidden" class="btn-menu relative z-50 -mr-8 flex h-[5rem] w-[5rem] shrink-0 cursor-pointer flex-col items-center justify-center gap-2.5 lg:hidden"
role="button" role="button"
> aria-label="Menu"
<span class="hidden">Menu</span> ></div>
</div>
{{ $bg_color := $.Scratch.Get "bg_color" }} {{ $bg_color := $.Scratch.Get "bg_color" }}
<script> <script>