File tree Expand file tree Collapse file tree 2 files changed +6
-16
lines changed
src/Frontend/src/components Expand file tree Collapse file tree 2 files changed +6
-16
lines changed Original file line number Diff line number Diff line change 11<script setup lang="ts">
22import { computed , useTemplateRef } from " vue" ;
33import debounce from " lodash/debounce" ;
4+ import FAIcon from " ./FAIcon.vue" ;
5+ import { faFilter } from " @fortawesome/free-solid-svg-icons" ;
46
57const model = defineModel <string >({ required: true });
68const emit = defineEmits <{ focus: []; blur: [] }>();
@@ -27,6 +29,7 @@ function focus() {
2729
2830<template >
2931 <div role =" search" aria-label =" filter" class =" filter-input" >
32+ <FAIcon :icon =" faFilter" class =" icon" />
3033 <input ref =" textField" type =" search" @focus =" () => emit('focus')" @blur =" () => emit('blur')" :placeholder =" props.placeholder" :aria-label =" props.ariaLabel" class =" form-control filter-input" v-model =" localInput" />
3134 </div >
3235</template >
@@ -47,13 +50,10 @@ div.filter-input {
4750 height : 2.6em ;
4851}
4952
50- .filter-input :before {
51- font-family : " FontAwesome" ;
52- width : 1.43em ;
53- content : " \f0b0 " ;
54- color : #919e9e ;
53+ .filter-input .icon {
5554 position : absolute ;
56- top : calc (50% - 0.7em );
5755 left : 0.75em ;
56+ top : calc (50% - 0.5em );
57+ color : var (--reduced-emphasis );
5858}
5959 </style >
Original file line number Diff line number Diff line change @@ -48,14 +48,4 @@ div.filter-input {
4848 position : relative ;
4949 width : 280px ;
5050}
51-
52- .filter-input :before {
53- font-family : " FontAwesome" ;
54- width : 1.43em ;
55- content : " \f0b0 " ;
56- color : #919e9e ;
57- position : absolute ;
58- top : calc (50% - 0.7em );
59- left : 0.75em ;
60- }
6151 </style >
You can’t perform that action at this time.
0 commit comments