🩹 Fix: Incorrect usage of <label> for menu-button

This fixes the following issue in Chrome: No label associated with a form field.

I don't know why a <label> was used here before, but I see no reason to do so, a div works just as well.
This commit is contained in:
Served Smart
2025-06-20 07:34:14 +02:00
parent 8d940881a4
commit 82622d38d8

View File

@@ -99,7 +99,7 @@
{{ define "HeaderMobileMenu" }}
<div class="-my-2 md:hidden">
<label id="menu-button" class="block">
<div id="menu-button" class="block">
{{ if .Site.Menus.main }}
<div class="cursor-pointer hover:text-primary-600 dark:hover:text-primary-400">
{{ partial "icon.html" "bars" }}
@@ -148,7 +148,7 @@
{{ end }}
</div>
{{ end }}
</label>
</div>
</div>
{{ end }}