Skip to content

Commit 922aed8

Browse files
committed
fix(a11y): add label to search
1 parent 1bd359d commit 922aed8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/lib/components/custom/Search.svelte

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
type="search"
3535
name="q"
3636
placeholder="Search with Mwmbl..."
37+
aria-label="Search with Mwmbl"
3738
class={'text-l2 h-12 rounded-2xl border-none bg-card p-6 text-lg ' +
3839
(completionsExist ? ' rounded-b-none ' : '')}
3940
bind:inputEl={input}
@@ -44,7 +45,7 @@
4445
<Button
4546
tabindex={-1}
4647
type="submit"
47-
class="bg-brand-gradient absolute right-3 h-8 w-8 rounded-full disabled:pointer-events-auto disabled:cursor-default disabled:opacity-100"
48+
class="absolute right-3 h-8 w-8 rounded-full bg-brand-gradient disabled:pointer-events-auto disabled:cursor-default disabled:opacity-100"
4849
disabled={query == undefined}
4950
title="Search Mwmbl"
5051
aria-label="Search Mwmbl"
@@ -57,7 +58,7 @@
5758
query = undefined;
5859
input.focus();
5960
}}
60-
class="bg-brand-gradient absolute right-3 h-8 w-8 rounded-full"
61+
class="absolute right-3 h-8 w-8 rounded-full bg-brand-gradient"
6162
title="Clear query and search again"
6263
aria-label="Clear query and search again"
6364
>

0 commit comments

Comments
 (0)