chore(SelectMenu): move resolve class logic into template

This commit is contained in:
Benjamin Canac
2023-05-09 11:51:38 +02:00
parent 6de57aa1a0
commit fc11612a49
2 changed files with 7 additions and 12 deletions

View File

@@ -322,7 +322,11 @@ const selectMenu = {
ring: 'ring-1 ring-gray-200 dark:ring-gray-700',
input: 'block w-[calc(100%+0.5rem)] focus:ring-transparent text-sm px-3 py-1.5 u-text-gray-700 bg-white dark:bg-gray-800 border-0 border-b border-gray-200 dark:border-gray-700 focus:border-inherit sticky -top-1 -mt-1 mb-1 -mx-1 z-10 placeholder-gray-400 dark:placeholder-gray-500',
option: {
base: 'cursor-default select-none relative px-2 py-1.5 rounded-md text-sm text-gray-900 dark:text-white flex items-center justify-between gap-1',
base: 'cursor-default select-none relative flex items-center justify-between gap-1',
rounded: 'rounded-md',
spacing: 'px-2 py-1.5',
size: 'text-sm',
color: 'text-gray-900 dark:text-white',
container: 'flex items-center gap-2',
active: 'bg-gray-100 dark:bg-gray-900',
inactive: '',