diff --git a/src/theme/dropdown-menu.ts b/src/theme/dropdown-menu.ts index a9a8c113..eae05b21 100644 --- a/src/theme/dropdown-menu.ts +++ b/src/theme/dropdown-menu.ts @@ -2,9 +2,9 @@ export default { slots: { content: 'min-w-48 bg-white dark:bg-gray-900 shadow-lg rounded-md ring ring-gray-200 dark:ring-gray-800 divide-y divide-gray-200 dark:divide-gray-800 overflow-y-auto scroll-py-1 data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in]', arrow: 'fill-gray-200 dark:fill-gray-800', - group: 'p-1', + group: 'p-1 isolate', label: 'w-full flex items-center gap-1.5 p-1.5 text-sm font-medium select-none', - item: 'group relative w-full flex items-center gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md disabled:cursor-not-allowed disabled:opacity-75', + item: 'group relative w-full flex items-center gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75', itemLeadingIcon: 'shrink-0 size-5', itemLeadingAvatar: 'shrink-0', itemTrailing: 'ms-auto inline-flex', @@ -19,8 +19,8 @@ export default { itemLeadingIcon: 'text-gray-700 dark:text-gray-200' }, false: { - item: 'text-gray-700 dark:text-gray-200 data-[highlighted]:text-gray-900 dark:data-[highlighted]:text-white data-[state=open]:text-gray-900 dark:data-[state=open]:text-white data-[highlighted]:before:bg-gray-50 dark:data-[highlighted]:before:bg-gray-800/50 data-[state=open]:before:bg-gray-50 dark:data-[state=open]:before:bg-gray-800/50', - itemLeadingIcon: 'text-gray-400 dark:text-gray-500 group-data-[highlighted]:text-gray-700 dark:group-data-[highlighted]:text-gray-200 group-data-[state=open]:text-gray-700 dark:group-data-[state=open]:text-gray-200' + item: 'text-gray-700 dark:text-gray-200 data-highlighted:text-gray-900 dark:data-highlighted:text-white data-[state=open]:text-gray-900 dark:data-[state=open]:text-white data-highlighted:before:bg-gray-50 dark:data-highlighted:before:bg-gray-800/50 data-[state=open]:before:bg-gray-50 dark:data-[state=open]:before:bg-gray-800/50', + itemLeadingIcon: 'text-gray-400 dark:text-gray-500 group-data-highlighted:text-gray-700 dark:group-data-highlighted:text-gray-200 group-data-[state=open]:text-gray-700 dark:group-data-[state=open]:text-gray-200' } } } diff --git a/test/components/__snapshots__/DropdownMenu.spec.ts.snap b/test/components/__snapshots__/DropdownMenu.spec.ts.snap index 3e4baaec..e5df4a6a 100644 --- a/test/components/__snapshots__/DropdownMenu.spec.ts.snap +++ b/test/components/__snapshots__/DropdownMenu.spec.ts.snap @@ -8,11 +8,11 @@ exports[`DropdownMenu > renders basic case correctly 1`] = `
@@ -31,11 +31,11 @@ exports[`DropdownMenu > renders with class correctly 1`] = `
@@ -54,11 +54,11 @@ exports[`DropdownMenu > renders with ui correctly 1`] = `