Skip to content

Commit bee507b

Browse files
Fix search-icon when typing
1 parent 0f285fd commit bee507b

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

layouts/partials/search-input.html

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,40 @@
1+
<style>
2+
input[type=text] {
3+
box-sizing: border-box;
4+
background-color: white;
5+
background-image: url('https://www.w3schools.com/css/searchicon.png');
6+
background-position: 10px 10px;
7+
background-repeat: no-repeat;
8+
padding: 12px 20px 12px 40px;
9+
}
10+
</style>
11+
112
{{ if or .Site.Params.gcs_engine_id .Site.Params.algolia_docsearch }}
213
<input
3-
type="search"
14+
type="text"
415
class="form-control td-search-input"
5-
placeholder="&#xf002; {{ T "ui_search_placeholder" }}"
16+
placeholder=" {{ T "ui_search_placeholder" }}"
617
aria-label="{{ T "ui_search_placeholder" }}"
718
autocomplete="off"
819
>
920
{{ else if .Site.Params.offlineSearch }}
1021
<div id="search-nav-container">
1122
<input
12-
type="search"
23+
type="text"
1324
id="search-input"
1425
autocomplete="off"
1526
class="form-control td-search-input"
16-
placeholder="&#xf002 {{ T "ui_search_placeholder" }}"
27+
placeholder=" {{ T "ui_search_placeholder" }}"
1728
autocomplete="off"
1829
>
1930
<div id="search-results" class="container"></div>
2031
</div>
2132
{{ else if .Site.Params.k8s_search }}
2233
<input
23-
type="search"
34+
type="text"
2435
class="form-control td-search-input"
2536
name="q"
26-
placeholder="&#xf002 {{ T "ui_search_placeholder" }}"
37+
placeholder=" {{ T "ui_search_placeholder" }}"
2738
aria-label="{{ T "ui_search_placeholder" }}"
2839
autocomplete="off"
2940
>

0 commit comments

Comments
 (0)