Adding better integration with keyboard navigation for the search.
This commit is contained in:
parent
8bd4379ef2
commit
4eeed20efc
@ -47,6 +47,7 @@ function addListenersSearch() {
|
|||||||
const searchOverlay = document.querySelector('div.search-overlay');
|
const searchOverlay = document.querySelector('div.search-overlay');
|
||||||
const searchInput = searchOverlay.querySelector('div.search input');
|
const searchInput = searchOverlay.querySelector('div.search input');
|
||||||
searchInput.value = fakeSearchInput.value;
|
searchInput.value = fakeSearchInput.value;
|
||||||
|
onSearchChange(e)
|
||||||
}
|
}
|
||||||
onFakeSearchClick(e)
|
onFakeSearchClick(e)
|
||||||
});
|
});
|
||||||
|
File diff suppressed because one or more lines are too long
@ -35,7 +35,7 @@
|
|||||||
<div class="search-overlay">
|
<div class="search-overlay">
|
||||||
<div class="bounding-search-bar">
|
<div class="bounding-search-bar">
|
||||||
%= include 'page/_search_bar'
|
%= include 'page/_search_bar'
|
||||||
<a class="exit-search">
|
<a href="#" class="exit-search">
|
||||||
<img alt="Exit search" src="/img/exit.svg"/>
|
<img alt="Exit search" src="/img/exit.svg"/>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<div tabindex="0" class="search">
|
<div class="search">
|
||||||
<div class="search-icon">
|
<div class="search-icon">
|
||||||
<img alt="" src="/img/search.svg"/>
|
<img alt="" src="/img/search.svg"/>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user