Skip to content

Commit ca3942a

Browse files
fix: remove unnecessary search landmark nested in <search> (#314)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent 6369404 commit ca3942a

3 files changed

Lines changed: 3 additions & 15 deletions

File tree

app/components/AppHeader.vue

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,7 @@ onKeyStroke(',', e => {
7171
<div class="flex-1 flex items-center justify-center gap-4 sm:gap-6">
7272
<!-- Search bar (shown on all pages except home and search) -->
7373
<search v-if="showSearchBar" class="hidden sm:block flex-1 max-w-md">
74-
<form
75-
role="search"
76-
method="GET"
77-
action="/search"
78-
class="relative"
79-
@submit.prevent="handleSearchInput"
80-
>
74+
<form method="GET" action="/search" class="relative" @submit.prevent="handleSearchInput">
8175
<label for="header-search" class="sr-only">
8276
{{ $t('search.label') }}
8377
</label>

app/pages/index.vue

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,7 @@ defineOgImageComponent('Default')
4949
class="w-full max-w-xl motion-safe:animate-slide-up motion-safe:animate-fill-both"
5050
style="animation-delay: 0.2s"
5151
>
52-
<form
53-
role="search"
54-
method="GET"
55-
action="/search"
56-
class="relative"
57-
@submit.prevent="handleSearch"
58-
>
52+
<form method="GET" action="/search" class="relative" @submit.prevent="handleSearch">
5953
<label for="home-search" class="sr-only">
6054
{{ $t('search.label') }}
6155
</label>

app/pages/search.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ defineOgImageComponent('Default', {
722722
<h1 class="font-mono text-xl sm:text-2xl font-medium mb-4">{{ $t('nav.search') }}</h1>
723723

724724
<search>
725-
<form role="search" method="GET" action="/search" class="relative" @submit.prevent>
725+
<form method="GET" action="/search" class="relative" @submit.prevent>
726726
<label for="search-input" class="sr-only">{{ $t('search.label') }}</label>
727727

728728
<div class="relative group" :class="{ 'is-focused': isSearchFocused }">

0 commit comments

Comments
 (0)