Skip to content

Remove closing animation of Menu component#432

Merged
florianduros merged 5 commits intomainfrom
florianduros/closing-animation-menu
Jan 23, 2026
Merged

Remove closing animation of Menu component#432
florianduros merged 5 commits intomainfrom
florianduros/closing-animation-menu

Conversation

@florianduros
Copy link
Member

@florianduros florianduros commented Jan 23, 2026

The closing animation is launched when the menu is closed (looking at data-state="closed"). If we remove the menu trigger menu from the dom when the menu is closed, the animation is still ongoing and causes the menu to be positioned at 0,0.
Needed to fix element-hq/element-web#31834

The closing animation is launched when the menu is closed (looking at
data-state="closed"). If we remove the menu trigger menu from the dom
when the menu is closed, the animation is still ongoing and causes the
menu to be positioned at 0,0.
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jan 23, 2026

Deploying compound-web with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2d9651a
Status: ✅  Deploy successful!
Preview URL: https://97c0a3d6.compound-web.pages.dev
Branch Preview URL: https://florianduros-closing-animati.compound-web.pages.dev

View logs

@florianduros florianduros force-pushed the florianduros/closing-animation-menu branch from fb83e56 to 64728c3 Compare January 23, 2026 09:42
@florianduros florianduros marked this pull request as ready for review January 23, 2026 09:49
@florianduros florianduros requested a review from a team as a code owner January 23, 2026 09:49
@florianduros florianduros requested review from dbkr and t3chguy and removed request for a team January 23, 2026 09:49
@t3chguy
Copy link
Member

t3chguy commented Jan 23, 2026

I feel like this yields an unpolished UX, either the closing animation should be entirely removed or fixed to work consistently rather than some menus animate and some do not.

@florianduros florianduros force-pushed the florianduros/closing-animation-menu branch 2 times, most recently from e27a67e to f0dced8 Compare January 23, 2026 13:14
@robintown
Copy link
Member

I'm also a little unsatisfied with entirely removing the closing animation, though can live with it if there isn't a better fix. Does anyone know if this has been reported upstream with Radix?

@florianduros
Copy link
Member Author

@robintown the issue is not from radix but from us adding a closing animation when the radix component is closed

@florianduros florianduros force-pushed the florianduros/closing-animation-menu branch from f0dced8 to ada0dae Compare January 23, 2026 13:25
@florianduros florianduros force-pushed the florianduros/closing-animation-menu branch from ada0dae to 2d9651a Compare January 23, 2026 13:27
@t3chguy
Copy link
Member

t3chguy commented Jan 23, 2026

PR title no longer matches content

@florianduros florianduros changed the title Add props to disable closing animation of Menu Remove closing animation of Menu component Jan 23, 2026
@florianduros florianduros merged commit b449be4 into main Jan 23, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Room List 'flashes' context menu when Favourites is selected

4 participants