diff --git a/docs/app/components/theme-studio/view/ThemeStudioViewDashboard.vue b/docs/app/components/theme-studio/view/ThemeStudioViewDashboard.vue
index 3dc7c45d9e..f447a53f1c 100644
--- a/docs/app/components/theme-studio/view/ThemeStudioViewDashboard.vue
+++ b/docs/app/components/theme-studio/view/ThemeStudioViewDashboard.vue
@@ -826,8 +826,7 @@ const pageTitles: Record = {
class="data-[state=open]:bg-soft"
:ui="{
value: 'capitalize',
- itemLabel: 'capitalize',
- trailingIcon: 'group-data-[state=open]:rotate-180 transition-transform duration-200'
+ itemLabel: 'capitalize'
}"
/>
@@ -945,7 +944,6 @@ const pageTitles: Record = {
diff --git a/docs/content/docs/1.getting-started/3.migration.md b/docs/content/docs/1.getting-started/3.migration.md
index 1061146877..26f33b8bf6 100644
--- a/docs/content/docs/1.getting-started/3.migration.md
+++ b/docs/content/docs/1.getting-started/3.migration.md
@@ -1362,6 +1362,15 @@ A class you set on `filter` to remove the border, like `border-b-0`, is no longe
```
+### Rotating chevrons
+
+The chevron of Select, SelectMenu and InputMenu now turns over while the menu is open, like the one of Accordion or NavigationMenu. Remove a `group-data-[state=open]:rotate-180` you added to their `trailingIcon` through `ui`, it's the default now. A rotation your code binds to the open state, like `open && 'rotate-180'`, or one inside a `ui` object built at runtime won't show up in a find-and-replace, so check those by hand. To keep a chevron still, a plain `rotate-0` isn't enough, set `group-data-[state=open]/select:rotate-0` on Select and SelectMenu or `group-data-[state=open]/input-menu:rotate-0` on InputMenu. The trigger icon of ProseCodeCollapse also animates when it turns.
+
+```diff
+-
++
+```
+
### Stacked toasts
Toasts are now stacked by default: the `expand` prop of the Toaster defaults to `false`, and hovering or focusing the stack expands it. Set it back to `true` on the App to keep every toast visible:
diff --git a/docs/content/docs/2.components/input-menu.md b/docs/content/docs/2.components/input-menu.md
index 0e5e2e46eb..1681d180d4 100644
--- a/docs/content/docs/2.components/input-menu.md
+++ b/docs/content/docs/2.components/input-menu.md
@@ -819,16 +819,6 @@ name: 'input-menu-search-term-example'
---
::
-### With rotating icon
-
-Here is an example with a rotating icon that indicates the open state of the InputMenu.
-
-::component-example
----
-name: 'input-menu-icon-example'
----
-::
-
### With floating label :badge{label="4.12+" class="align-text-top"}
You can use the `#default` slot to add a floating label to the InputMenu.
diff --git a/docs/content/docs/2.components/select-menu.md b/docs/content/docs/2.components/select-menu.md
index 30f72e28d9..6a439af31b 100644
--- a/docs/content/docs/2.components/select-menu.md
+++ b/docs/content/docs/2.components/select-menu.md
@@ -845,16 +845,6 @@ name: 'select-menu-search-term-example'
---
::
-### With rotating icon
-
-Here is an example with a rotating icon that indicates the open state of the SelectMenu.
-
-::component-example
----
-name: 'select-menu-icon-example'
----
-::
-
### With create item
Use the `create-item` prop to enable users to add custom values that aren't in the predefined options.
diff --git a/docs/content/docs/2.components/select.md b/docs/content/docs/2.components/select.md
index 08303ae0a2..926c443908 100644
--- a/docs/content/docs/2.components/select.md
+++ b/docs/content/docs/2.components/select.md
@@ -743,16 +743,6 @@ name: 'select-open-example'
In this example, leveraging [`defineShortcuts`](/docs/composables/define-shortcuts), you can toggle the Select by pressing :kbd{value="O"}.
::
-### With rotating icon
-
-Here is an example with a rotating icon that indicates the open state of the Select.
-
-::component-example
----
-name: 'select-icon-example'
----
-::
-
### With fetched items
You can fetch items from an API and use them in the Select.
diff --git a/src/runtime/theme/input-menu.ts b/src/runtime/theme/input-menu.ts
index d0b0b14ccc..d0c389af0e 100644
--- a/src/runtime/theme/input-menu.ts
+++ b/src/runtime/theme/input-menu.ts
@@ -10,8 +10,11 @@ export default extendTheme(input, {
// The tags sit on the reading line, so their row gives back the difference,
// and keeps the height of the field when it only holds the input
tags: 'flex flex-wrap items-center flex-1 min-w-0 gap-(--ui-control-gap) px-(--ui-control-px) py-(--ui-control-py)',
- trailing: () => 'group flex items-center pe-(--ui-control-px) disabled:cursor-not-allowed focus:outline-none',
+ trailing: () => 'group group/input-menu flex items-center pe-(--ui-control-px) disabled:cursor-not-allowed focus:outline-none',
trailingClear: 'p-0',
+ // The chevron turns over while the menu is open, the named group keeps an open
+ // ancestor from turning it
+ trailingIcon: 'group-data-[state=open]/input-menu:rotate-180 transition-transform duration-200 ease-out motion-reduce:transition-none',
arrow: 'fill-bg stroke-default',
content: 'max-h-[min(15rem,var(--reka-combobox-content-available-height,15rem))] w-(--reka-combobox-trigger-width) bg-overlay shadow-lg rounded-md ring ring-default overflow-hidden data-[state=open]:animate-[scale-in_100ms_var(--ease-out)] data-[state=closed]:animate-[scale-out_100ms_var(--ease-out)] origin-(--reka-combobox-content-transform-origin) pointer-events-auto flex flex-col cursor-default',
viewport: 'relative scroll-py-1 overflow-y-auto flex-1',
diff --git a/src/runtime/theme/prose/code-collapse.ts b/src/runtime/theme/prose/code-collapse.ts
index 7108f5cbbb..ffcacafa08 100644
--- a/src/runtime/theme/prose/code-collapse.ts
+++ b/src/runtime/theme/prose/code-collapse.ts
@@ -5,7 +5,7 @@ export default defineTheme({
root: 'relative my-5 bg-default [&>div]:my-0 [&_pre]:max-h-[80vh] [&_pre]:pb-12',
footer: 'h-16 absolute inset-x-px bottom-px rounded-b-md flex items-center justify-center',
trigger: 'group relative',
- triggerIcon: 'group-data-[state=open]:rotate-180'
+ triggerIcon: 'group-data-[state=open]:rotate-180 transition-transform duration-200 ease-out motion-reduce:transition-none'
},
variants: {
open: {
diff --git a/src/runtime/theme/select.ts b/src/runtime/theme/select.ts
index 4d47009fff..91ab7b2154 100644
--- a/src/runtime/theme/select.ts
+++ b/src/runtime/theme/select.ts
@@ -5,13 +5,15 @@ import { defineTheme } from '../utils/theme'
// `base` is the box, the `