theme: Add aria-label attribute to search fields

Closes #2899
This commit is contained in:
Joe Mooring authored and Bjørn Erik Pedersen committed 2025-02-14 09:29:09 +01:00
1 parent ed42af5b3b
commit 14bf9dc700
2 files changed
+2

No files matched your search

@@ -10,6 +10,7 @@
x-data @click="$dispatch('search-toggle')"
{{ end }}
type="button"
aria-label="Search"
class="{{ $textColor }} grid cursor-pointer w-full lg:w-56 grid-cols-[auto_1fr_auto] items-center rounded-md px-2 sm:px-4 py-2 text-left text-xs/6 lg:text-sm/6 outline-0 sm:outline-1 -outline-offset-1 outline-gray-600">
<svg
class="{{ $fillColor}} pointer-events-none -ml-0.5 mr-2 size-5 sm:size-4">
@@ -31,6 +31,7 @@
x-model.debounce.100ms="query"
@click="search()"
type="search"
arial-label="Search"
class="text-gray-800 dark:text-gray-100 bg-white/40 dark:bg-gray-900 shadow rounded border-0 p-3 w-full"
placeholder="Search docs"
x-ref="input" />