-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Menu: Allow simplified submenu syntax #10469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Menu: Allow simplified submenu syntax #10469
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #10469 +/- ##
==========================================
- Coverage 91.51% 91.51% -0.01%
==========================================
Files 426 426
Lines 13277 13278 +1
Branches 2549 2550 +1
==========================================
Hits 12151 12151
Misses 552 552
- Partials 574 575 +1 ☔ View full report in Codecov by Sentry. |
This comment was marked as outdated.
This comment was marked as outdated.
|
Migration Guide:
|
It is a change for the better in any case. I just added the breaking change label for good measure. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I love the new syntax. LGTM
@ScarletKuro If you have any concerns let me know so I can take care of them in my follow up PRs |
This should be added to migration guide, I guess you could create a section for all MudMenu changes, you should have the rights to edit my comment I think |
Description
Part of #10255. See the example page for the updated, simplified syntax.
The menu activator previously always created a Button and users would manually wrap it inside a Menu Item. Now, if it detects that it’s part of a parent menu, it automatically creates a Menu Item instead, ensuring a more seamless layout.
This update also adds new selector classes and includes documentation and test updates.
Old Syntax:
New syntax:
How Has This Been Tested?
unit
Type of Changes
This is what it looked like with the new syntax but the old code:
Should be
Checklist
dev
).