Skip to content

Commit 7442b88

Browse files
author
Christian Bedon
committed
fix: checkmark sizes and differences from design
1 parent 06d2f23 commit 7442b88

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

src/components/MyKiva/RoundCheckbox.vue

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@
2121
<div
2222
:class="[
2323
'tw-relative',
24-
inputValue ? 'tw-w-3.5 tw-h-3.5 tw-bg-transparent' : 'tw-w-3 tw-h-3 tw-bg-gray-200',
24+
inputValue ? 'tw-text-brand-550' : 'tw-bg-gray-200',
2525
'tw-rounded-full',
26-
'tw-mr-2',
26+
'tw-w-2.5 tw-h-2.5',
27+
'tw-mr-0.5',
2728
'tw-transition-colors',
2829
'tw-flex',
2930
'tw-items-center',
@@ -35,7 +36,7 @@
3536
<KvMaterialIcon
3637
v-if="inputValue"
3738
:icon="mdiCheckCircle"
38-
class="tw-absolute tw-inset-0 tw-w-3.5 tw-h-3.5 tw-text-brand-550"
39+
class="check-icon"
3940
/>
4041
</transition>
4142
</div>
@@ -74,11 +75,15 @@ watch(() => props.checked, val => {
7475
<style lang="postcss" scoped>
7576
7677
.fade-enter-active, .fade-leave-active {
77-
transition: opacity 0.5s;
78+
@apply tw-transition-opacity tw-duration-500;
7879
}
7980
8081
.fade-enter-from, .fade-leave-to {
81-
opacity: 0;
82+
@apply tw-opacity-0;
83+
}
84+
85+
:deep(.check-icon svg) {
86+
@apply tw-w-3 tw-h-3;
8287
}
8388
8489
</style>

0 commit comments

Comments
 (0)