Skip to content

Commit

Permalink
Accessibility update search bar
Browse files Browse the repository at this point in the history
Signed-off-by: Arhell <arhell333@gmail.com>
  • Loading branch information
Arhell committed Aug 14, 2023
1 parent cec95aa commit 29ef904
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion themes/academic/layouts/partials/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
<div class="changesearch">
<!-- <input type="text" name="search_name" placeholder="Search" class="inputt"> -->
<input name="q" id="searchquery" placeholder="{{i18n "search_placeholder"}}" autocapitalize="off"
autocomplete="off" autocorrect="off" role="textbox" spellcheck="false" type="search" class="inputt" onkeydown="enterIn(event);">
autocomplete="off" autocorrect="off" spellcheck="false" type="search" class="inputt" onkeydown="enterIn(event);">
<a class="nav-link js-search" href="#" aria-label="icon">
<i class="fas fa-search" aria-hidden="true" style="position: absolute;margin-left: -10px;"></i>
</a>
Expand Down
2 changes: 1 addition & 1 deletion themes/academic/layouts/partials/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ <h1>{{ i18n "search" }}</h1>
<div id="search-box">
{{ if eq $.Site.Params.search.engine 1 }}
<input name="q" id="search-query" placeholder="{{i18n "search_placeholder"}}" autocapitalize="off"
autocomplete="off" autocorrect="off" role="textbox" spellcheck="false" type="search">
autocomplete="off" autocorrect="off" spellcheck="false" type="search">
{{ else }}
<!-- Search box will appear here -->
{{ end }}
Expand Down
2 changes: 1 addition & 1 deletion themes/academic/layouts/section/publication.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<div class="form-row mb-4">
<div class="col-auto">
<input type="search" class="filter-search" placeholder="{{ i18n "search_placeholder" }}" autocapitalize="off"
autocomplete="off" autocorrect="off" role="textbox" spellcheck="false">
autocomplete="off" autocorrect="off" spellcheck="false">
</div>
<div class="col-auto">
<select class="pub-filters pubtype-select form-control form-control-sm" data-filter-group="pubtype">
Expand Down

0 comments on commit 29ef904

Please sign in to comment.