Replaced searchInput with local icon
This commit is contained in:
@@ -1,14 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div class="search" :class="{ active: focusingInput }">
|
<div class="search" :class="{ active: focusingInput }">
|
||||||
<svg
|
<IconSearch class="search-icon" tabindex="-1" />
|
||||||
class="search-icon"
|
|
||||||
tabindex="-1"
|
|
||||||
fill="currentColor"
|
|
||||||
@click="handleSubmit"
|
|
||||||
>
|
|
||||||
<use xlink:href="#iconSearch"></use>
|
|
||||||
</svg>
|
|
||||||
|
|
||||||
<input
|
<input
|
||||||
ref="input"
|
ref="input"
|
||||||
@@ -53,6 +46,7 @@ import { mapActions, mapGetters } from "vuex";
|
|||||||
import SeasonedButton from "@/components/ui/SeasonedButton";
|
import SeasonedButton from "@/components/ui/SeasonedButton";
|
||||||
import AutocompleteDropdown from "@/components/AutocompleteDropdown";
|
import AutocompleteDropdown from "@/components/AutocompleteDropdown";
|
||||||
|
|
||||||
|
import IconSearch from "src/icons/IconSearch";
|
||||||
import IconClose from "src/icons/IconClose";
|
import IconClose from "src/icons/IconClose";
|
||||||
import config from "@/config.json";
|
import config from "@/config.json";
|
||||||
|
|
||||||
@@ -61,7 +55,8 @@ export default {
|
|||||||
components: {
|
components: {
|
||||||
SeasonedButton,
|
SeasonedButton,
|
||||||
AutocompleteDropdown,
|
AutocompleteDropdown,
|
||||||
IconClose
|
IconClose,
|
||||||
|
IconSearch
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -225,7 +220,7 @@ hr {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.search-icon {
|
.search-icon {
|
||||||
fill: var(--color-green);
|
stroke: var(--color-green);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -275,8 +270,8 @@ hr {
|
|||||||
&-icon {
|
&-icon {
|
||||||
width: 20px;
|
width: 20px;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
fill: $text-color-50;
|
stroke: var(--text-color-50);
|
||||||
transition: fill 0.5s ease;
|
transition: stroke 0.5s ease;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 15px;
|
left: 15px;
|
||||||
|
|||||||
16
src/icons/IconSearch.vue
Normal file
16
src/icons/IconSearch.vue
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
<template>
|
||||||
|
<svg
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
width="24"
|
||||||
|
height="24"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
fill="none"
|
||||||
|
stroke="currentColor"
|
||||||
|
stroke-width="2"
|
||||||
|
stroke-linecap="round"
|
||||||
|
stroke-linejoin="round"
|
||||||
|
>
|
||||||
|
<circle cx="11" cy="11" r="8"></circle>
|
||||||
|
<line x1="21" y1="21" x2="16.65" y2="16.65"></line>
|
||||||
|
</svg>
|
||||||
|
</template>
|
||||||
Reference in New Issue
Block a user