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 1 week ago
parent
commit
7a9b75a329
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

@@ -14,7 +14,7 @@
14 14
   <div id="search-app">
15 15
     <div v-cloak>
16 16
       <section>
17
-        <form v-on:submit.prevent class="form" action="{{ "search" | absURL }}">
17
+        <form v-on:submit.prevent role="search" class="form" action="{{ "search" | absURL }}">
18 18
           <fieldset class="form-group">
19 19
             <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 }}>
20 20
             {{ with .Params.form.helpblock }}

Loading…
Cancel
Save