Skip to content

Commit

Permalink
add type=search to search inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
cblgh committed Feb 4, 2021
1 parent 2d0f499 commit 4ba6437
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion html/index-template.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<h1><a href="/">Lieu</a></h1>
<h2>the search for the new—endless</h2>
<form class="search-container">
<input type="text" required minlength="1" name="q" placeholder="tracking" value="{{ .Query }}" class="search-box">
<input type="search" required minlength="1" name="q" placeholder="tracking" value="{{ .Query }}" class="search-box">
<button type="submit" class="search-button"></button>
</form>
</div>
Expand Down
2 changes: 1 addition & 1 deletion html/search-template.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<a class="about-link" href="/about">About</a>
<h1><a href="/">Lieu</a></h1>
<form method="GET" class="search-container">
<input name="q" value="{{ .Query }}" class="search-box">
<input type="search" minlength="1" required name="q" value="{{ .Query }}" class="search-box">
<button type="submit" class="search-button"></button>
</form>
<main>
Expand Down

0 comments on commit 4ba6437

Please sign in to comment.