Skip to content

Commit

Permalink
fix(checkbox): add transition-colors class
Browse files Browse the repository at this point in the history
  • Loading branch information
lecoueyl committed Aug 21, 2021
1 parent 725206c commit 20994cf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/checkbox/Checkbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@
>
<div
:class="[
'border rounded w-4 h-4 flex justify-center items-center flex-none my-1',
'border rounded w-4 h-4 flex justify-center items-center flex-none my-1 transition-colors',
{
'group-hover:border-primary-500 dark:group-hover:border-primary-500': !disabled,
'bg-primary-500 border-primary-500': checked || mixed && !disabled,
'bg-white dark:bg-gray-900 border-gray-300 dark:border-gray-700': !checked && !mixed && !disabled,
'bg-primary-500 border-primary-500': (checked || mixed) && !disabled,
'bg-white dark:bg-gray-900 border-gray-300 dark:border-gray-700': (!checked && !mixed )&& !disabled,
// disabled
'bg-gray-500 border-gray-600 dark:border-gray-400': checked || mixed && disabled,
'bg-gray-200 border-gray-300 dark:border-gray-700': !checked && !mixed && disabled,
'bg-gray-500 border-gray-600 dark:border-gray-400': (checked || mixed) && disabled,
'bg-gray-200 border-gray-300 dark:border-gray-700': (!checked && !mixed) && disabled,
}
]"
>
Expand Down

0 comments on commit 20994cf

Please sign in to comment.