refactor: improve ui consistency

This commit is contained in:
liyasthomas
2022-02-22 15:47:23 +05:30
parent 86d4fa5883
commit c6c479f681
4 changed files with 12 additions and 16 deletions

View File

@@ -1,16 +1,12 @@
<template>
<div
class="flex items-center flex-1 cursor-pointer transition flex-nowrap group hover:text-secondaryDark"
@click="$emit('change', value)"
>
<span class="inline-flex mr-4">
<i v-if="value === selected" class="text-accent material-icons">
radio_button_checked
</i>
<i v-else class="material-icons">radio_button_unchecked</i>
</span>
<span class="inline-flex font-semibold">{{ label }}</span>
</div>
<SmartItem
:label="label"
:icon="
value === selected ? 'radio_button_checked' : 'radio_button_unchecked'
"
:active="value === selected"
@click.native="$emit('change', value)"
/>
</template>
<script>

View File

@@ -1,5 +1,5 @@
<template>
<div class="flex flex-col space-y-4">
<div class="flex flex-col">
<SmartRadio
v-for="(radio, index) in radios"
:key="`radio-${index}`"