Skip to content

[menu] Overhaul the component API#468

Merged
michaldudak merged 122 commits into
mui:masterfrom
michaldudak:menu
Aug 2, 2024
Merged

[menu] Overhaul the component API#468
michaldudak merged 122 commits into
mui:masterfrom
michaldudak:menu

Conversation

@michaldudak

@michaldudak michaldudak commented Jun 26, 2024

Copy link
Copy Markdown
Member

@atomiks

atomiks commented Jul 25, 2024

Copy link
Copy Markdown
Contributor

Bug when traversing back to the submenu trigger, menu doesn't open

Screen.Recording.2024-07-25.at.11.33.36.PM.mov

@colmtuite

Copy link
Copy Markdown
Contributor

@michaldudak Feedback based on our chat:

  1. Add the Arrow component
  2. Consider making focus looping configurable. I vote it should be.
  3. Rename positionStrategy to positionMethod across all components.

@michaldudak

Copy link
Copy Markdown
Member Author

@colmtuite I did 1 and 2. positionStrategy rename should be done on the other components first in a separate PR.

@colmtuite

colmtuite commented Jul 26, 2024

Copy link
Copy Markdown
Contributor

@michaldudak In this vid, the menu is initially opening above the trigger, then quickly repositioning itself below.
https://github.com/user-attachments/assets/dee98c5c-a19b-47ab-8f8b-2c2f07b0eb30

@michaldudak

Copy link
Copy Markdown
Member Author

Bug when traversing back to the submenu trigger, menu doesn't open

@atomiks, Should be working OK now.

In this vid, the menu is initially opening above the trigger, then quickly repositioning itself below.

@colmtuite, could you prepare a reproduction on codesandbox?

Comment thread packages/mui-base/src/Menu/Positioner/MenuPositionerContext.ts Outdated
@github-actions github-actions Bot added the PR: out-of-date The pull request has merge conflicts and can't be merged. label Aug 1, 2024
@colmtuite
colmtuite self-requested a review August 1, 2024 11:43
@github-actions github-actions Bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged. label Aug 1, 2024
@michaldudak michaldudak mentioned this pull request Aug 2, 2024
14 tasks

@atomiks atomiks left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@michaldudak
michaldudak merged commit a71c099 into mui:master Aug 2, 2024
@michaldudak
michaldudak deleted the menu branch August 2, 2024 11:54
@oliviertassinari oliviertassinari changed the title [Menu] Overhaul the component API [menu] Overhaul the component API May 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking change Introduces changes that are not backward compatible. component: menu Changes related to the menu component.

Projects

None yet

6 participants