diff --git a/src/theme/input-menu.ts b/src/theme/input-menu.ts index 9be78048..3fa5dfd5 100644 --- a/src/theme/input-menu.ts +++ b/src/theme/input-menu.ts @@ -6,7 +6,7 @@ export default (options: Required) => { return defuFn({ slots: { base: () => ['rounded-md', options.theme.transitions && 'transition-colors'], - trailing: 'absolute inset-y-0 end-0 flex items-center disabled:cursor-not-allowed disabled:opacity-75', + trailing: 'group absolute inset-y-0 end-0 flex items-center disabled:cursor-not-allowed disabled:opacity-75', arrow: 'fill-gray-200 dark:fill-gray-800', content: 'max-h-60 w-[--radix-popper-anchor-width] bg-white dark:bg-gray-900 shadow-lg rounded-md ring ring-gray-200 dark:ring-gray-800 overflow-hidden data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in]', viewport: 'divide-y divide-gray-200 dark:divide-gray-800 scroll-py-1', diff --git a/test/components/__snapshots__/InputMenu.spec.ts.snap b/test/components/__snapshots__/InputMenu.spec.ts.snap index 95d97382..53941092 100644 --- a/test/components/__snapshots__/InputMenu.spec.ts.snap +++ b/test/components/__snapshots__/InputMenu.spec.ts.snap @@ -2,7 +2,7 @@ exports[`InputMenu > renders with arrow correctly 1`] = ` "
- +
@@ -37,7 +37,7 @@ exports[`InputMenu > renders with arrow correctly 1`] = ` exports[`InputMenu > renders with as correctly 1`] = ` "
- +
@@ -72,7 +72,7 @@ exports[`InputMenu > renders with as correctly 1`] = ` exports[`InputMenu > renders with class correctly 1`] = ` "
- +
@@ -107,7 +107,7 @@ exports[`InputMenu > renders with class correctly 1`] = ` exports[`InputMenu > renders with default slot correctly 1`] = ` "
- + @@ -116,7 +116,7 @@ exports[`InputMenu > renders with default slot correctly 1`] = ` exports[`InputMenu > renders with defaultValue correctly 1`] = ` "
- +
@@ -151,7 +151,7 @@ exports[`InputMenu > renders with defaultValue correctly 1`] = ` exports[`InputMenu > renders with disabled correctly 1`] = ` "
- +
@@ -186,7 +186,7 @@ exports[`InputMenu > renders with disabled correctly 1`] = ` exports[`InputMenu > renders with gray variant ghost correctly 1`] = ` "
- +
@@ -221,7 +221,7 @@ exports[`InputMenu > renders with gray variant ghost correctly 1`] = ` exports[`InputMenu > renders with gray variant none correctly 1`] = ` "
- +
@@ -256,7 +256,7 @@ exports[`InputMenu > renders with gray variant none correctly 1`] = ` exports[`InputMenu > renders with gray variant outline correctly 1`] = ` "
- +
@@ -291,7 +291,7 @@ exports[`InputMenu > renders with gray variant outline correctly 1`] = ` exports[`InputMenu > renders with gray variant soft correctly 1`] = ` "
- +
@@ -326,7 +326,7 @@ exports[`InputMenu > renders with gray variant soft correctly 1`] = ` exports[`InputMenu > renders with gray variant subtle correctly 1`] = ` "
- +
@@ -360,7 +360,7 @@ exports[`InputMenu > renders with gray variant subtle correctly 1`] = ` `; exports[`InputMenu > renders with icon correctly 1`] = ` -"
+"
@@ -395,7 +395,7 @@ exports[`InputMenu > renders with icon correctly 1`] = ` exports[`InputMenu > renders with id correctly 1`] = ` "
- +
@@ -430,7 +430,7 @@ exports[`InputMenu > renders with id correctly 1`] = ` exports[`InputMenu > renders with item slot correctly 1`] = ` "
- +
@@ -465,7 +465,7 @@ exports[`InputMenu > renders with item slot correctly 1`] = ` exports[`InputMenu > renders with item-label slot correctly 1`] = ` "
- +
@@ -500,7 +500,7 @@ exports[`InputMenu > renders with item-label slot correctly 1`] = ` exports[`InputMenu > renders with item-leading slot correctly 1`] = ` "
- +
@@ -535,7 +535,7 @@ exports[`InputMenu > renders with item-leading slot correctly 1`] = ` exports[`InputMenu > renders with item-trailing slot correctly 1`] = ` "
- +
@@ -570,7 +570,7 @@ exports[`InputMenu > renders with item-trailing slot correctly 1`] = ` exports[`InputMenu > renders with items correctly 1`] = ` "
- +
@@ -604,7 +604,7 @@ exports[`InputMenu > renders with items correctly 1`] = ` `; exports[`InputMenu > renders with leading and icon correctly 1`] = ` -"
+"
@@ -638,7 +638,7 @@ exports[`InputMenu > renders with leading and icon correctly 1`] = ` `; exports[`InputMenu > renders with leading slot correctly 1`] = ` -"
Leading slot +"
Leading slot @@ -646,7 +646,7 @@ exports[`InputMenu > renders with leading slot correctly 1`] = ` `; exports[`InputMenu > renders with leadingIcon correctly 1`] = ` -"
+"
@@ -680,7 +680,7 @@ exports[`InputMenu > renders with leadingIcon correctly 1`] = ` `; exports[`InputMenu > renders with loading correctly 1`] = ` -"
+"
@@ -714,7 +714,7 @@ exports[`InputMenu > renders with loading correctly 1`] = ` `; exports[`InputMenu > renders with loadingIcon correctly 1`] = ` -"
+"
@@ -749,7 +749,7 @@ exports[`InputMenu > renders with loadingIcon correctly 1`] = ` exports[`InputMenu > renders with modelValue correctly 1`] = ` "
- +
@@ -784,7 +784,7 @@ exports[`InputMenu > renders with modelValue correctly 1`] = ` exports[`InputMenu > renders with name correctly 1`] = ` "
- +
@@ -819,7 +819,7 @@ exports[`InputMenu > renders with name correctly 1`] = ` exports[`InputMenu > renders with placeholder correctly 1`] = ` "
- +
@@ -854,7 +854,7 @@ exports[`InputMenu > renders with placeholder correctly 1`] = ` exports[`InputMenu > renders with primary variant ghost correctly 1`] = ` "
- +
@@ -889,7 +889,7 @@ exports[`InputMenu > renders with primary variant ghost correctly 1`] = ` exports[`InputMenu > renders with primary variant none correctly 1`] = ` "
- +
@@ -924,7 +924,7 @@ exports[`InputMenu > renders with primary variant none correctly 1`] = ` exports[`InputMenu > renders with primary variant outline correctly 1`] = ` "
- +
@@ -959,7 +959,7 @@ exports[`InputMenu > renders with primary variant outline correctly 1`] = ` exports[`InputMenu > renders with primary variant soft correctly 1`] = ` "
- +
@@ -994,7 +994,7 @@ exports[`InputMenu > renders with primary variant soft correctly 1`] = ` exports[`InputMenu > renders with primary variant subtle correctly 1`] = ` "
- +
@@ -1029,7 +1029,7 @@ exports[`InputMenu > renders with primary variant subtle correctly 1`] = ` exports[`InputMenu > renders with required correctly 1`] = ` "
- +
@@ -1064,7 +1064,7 @@ exports[`InputMenu > renders with required correctly 1`] = ` exports[`InputMenu > renders with selectedIcon correctly 1`] = ` "
- +
@@ -1099,7 +1099,7 @@ exports[`InputMenu > renders with selectedIcon correctly 1`] = ` exports[`InputMenu > renders with size lg correctly 1`] = ` "
- +
@@ -1134,7 +1134,7 @@ exports[`InputMenu > renders with size lg correctly 1`] = ` exports[`InputMenu > renders with size md correctly 1`] = ` "
- +
@@ -1169,7 +1169,7 @@ exports[`InputMenu > renders with size md correctly 1`] = ` exports[`InputMenu > renders with size sm correctly 1`] = ` "
- +
@@ -1204,7 +1204,7 @@ exports[`InputMenu > renders with size sm correctly 1`] = ` exports[`InputMenu > renders with size xl correctly 1`] = ` "
- +
@@ -1239,7 +1239,7 @@ exports[`InputMenu > renders with size xl correctly 1`] = ` exports[`InputMenu > renders with size xs correctly 1`] = ` "
- +
@@ -1274,7 +1274,7 @@ exports[`InputMenu > renders with size xs correctly 1`] = ` exports[`InputMenu > renders with trailing and icon correctly 1`] = ` "
- +
@@ -1309,7 +1309,7 @@ exports[`InputMenu > renders with trailing and icon correctly 1`] = ` exports[`InputMenu > renders with trailing slot correctly 1`] = ` "
- + @@ -1318,7 +1318,7 @@ exports[`InputMenu > renders with trailing slot correctly 1`] = ` exports[`InputMenu > renders with trailingIcon correctly 1`] = ` "
- +
@@ -1353,7 +1353,7 @@ exports[`InputMenu > renders with trailingIcon correctly 1`] = ` exports[`InputMenu > renders with trailingIcon correctly 2`] = ` "
- +
@@ -1388,7 +1388,7 @@ exports[`InputMenu > renders with trailingIcon correctly 2`] = ` exports[`InputMenu > renders with ui correctly 1`] = ` "
- +