Skip to content

Commit 07fa50d

Browse files
committed
remove styles referencing fontawesome font
1 parent f2aa37b commit 07fa50d

File tree

2 files changed

+6
-16
lines changed

2 files changed

+6
-16
lines changed

src/Frontend/src/components/FilterInput.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<script setup lang="ts">
22
import { computed, useTemplateRef } from "vue";
33
import debounce from "lodash/debounce";
4+
import FAIcon from "./FAIcon.vue";
5+
import { faFilter } from "@fortawesome/free-solid-svg-icons";
46
57
const model = defineModel<string>({ required: true });
68
const 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>

src/Frontend/src/components/monitoring/MonitoringFilter.vue

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)