Browse Source

feat(feature/fuzzy-search): add aria landmark to search form

enables a11y api to read out the form type to users
Josh Habdas 11 months ago
parent
commit
5b26f5150b
Signed by: Josh Habdas <jhabdas@protonmail.com> GPG Key ID: B148B31154C75A74
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      layouts/_default/search.html

+ 1
- 1
layouts/_default/search.html View File

@@ -10,7 +10,7 @@
10 10
   </header>
11 11
   <div id="search-app">
12 12
     <section>
13
-      <form v-on:submit.prevent class="form" action="{{ "search" | absURL }}">
13
+      <form v-on:submit.prevent role="search" class="form" action="{{ "search" | absURL }}">
14 14
         <fieldset class="form-group">
15 15
           <input v-model="query" id="query" name="s" type="search" class="form-control" maxlength="32" autocomplete="off"{{ with .Params.form.input.placeholder }} placeholder="{{ . }}"{{ end }}{{ if eq .Params.form.input.disabled true }} disabled{{ end }}>
16 16
           {{ with .Params.form.helpblock }}

Loading…
Cancel
Save