-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Replaced "MenuGroup" with "NavigableMenu" in Warning Component. (Fixed:#12503) #12522
Conversation
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.
@@ -40,13 +40,13 @@ function Warning( { className, actions, children, secondaryActions } ) { | |||
/> | |||
) } | |||
renderContent={ () => ( | |||
<MenuGroup label={ __( 'More options' ) }> | |||
<NavigableMenu orientation="vertical" className="editor-warning-menu__content"> |
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.
This seems like a lower-level component and API-wise it seems better to have a MenuGroup
wrapping MenuItem
s which makes me wonder if we can't just support no passing a label to MenuGroup
instead of this?
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.
@youknowriad Thanks for reviewing. Yes, you are right. better to use MenuGroup
without label as NavigableMenu
is lower-level component. I will make this change soon.
@youknowriad a Also, I can understand high-level argumentations but I don't see the need to have a wrapping I'd say either the |
This is what I had on my mind. People shouldn't have to think too much to understand how to use a given component. |
@youknowriad I have made |
Code wise, this looks good. Can we get another check after the recent changes? |
14c2aac
to
db87686
Compare
Description
Replaced "MenuGroup" with "NavigableMenu" in Warning Component. which get rid of menu group title "More options" and fixes #12503
How has this been tested?
Screenshots
Types of changes
Checklist: