Skip to content

Commit

Permalink
small fixed to css
Browse files Browse the repository at this point in the history
  • Loading branch information
metkm committed Apr 1, 2023
1 parent 004d114 commit 0ce9180
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/Ui/BaseButtonIcon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
p-2
dark:bg-neutral-900
shadow-sm rounded-lg border dark:border-neutral-800
dark:fill-white hover:bg-green-600 hover:fill-white transition-colors
dark:fill-white hover:bg-green-600 hover:fill-white hover:text-white transition-colors
"
>
<slot></slot>
Expand Down
10 changes: 7 additions & 3 deletions src/components/Ui/BaseRadio.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@ defineProps<{

<template>
<div
class="px-4 py-2 relative rounded hover:bg-neutral-100 hover:dark:bg-neutral-800 hover:dark:text-white transition-colors"
:class="{ 'bg-green-600 text-white hover:text-black': modelValue === label }"
class="
px-4 py-2 relative
rounded-lg border dark:border-neutral-800 shadow-sm
hover:bg-green-600 hover:text-white transition-colors
"
:class="{ 'bg-green-600 text-white': modelValue == label }"
>
<input class="appearance-none absolute inset-0" type="radio" :id="label" :value="label" :checked="modelValue == label"
@change="$emit('update:modelValue', ($event.target as HTMLInputElement).value)" />
<label :for="label" class="transition-all" :class="{ 'mx-5': modelValue == label }">{{ label }}</label>
<label :for="label">{{ label }}</label>
</div>
</template>

0 comments on commit 0ce9180

Please sign in to comment.