Newer
Older
<script setup lang="ts">
const props = withDefaults(defineProps<{
showTextColors: boolean
}>(), {
showTextColors: true
})
</script>
<template>
<div class="flex space-x-3 text-sm text-gray-600" :class="{ 'text-colors': showTextColors }">
<div class="flex items-center positive"><i class="w-3 h-3 mr-1"></i><span>{{ $t('better') }}</span></div>
<div class="flex items-center neutral"><i class="w-3 h-3 mr-1"></i><span>{{ $t('equal') }}</span></div>
<div class="flex items-center negative"><i class="w-3 h-3 mr-1"></i><span>{{ $t('worse') }}</span></div>
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
</div>
</template>
<style scoped lang="scss">
.text-colors {
.positive {
i {
background: var(--color--positive-text);
}
}
.neutral {
i {
background: var(--color--neutral-text);
}
}
.negative {
i {
background: var(--color--negative-text);
}
}
}
.positive {
i {
background: var(--color--positive-background);
}
}
.neutral {
i {
background: var(--color--neutral-background);
}
}
.negative {
i {
background: var(--color--negative-background);
}
}
</style>