-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Site Editor: Fix browser console error in Library page #51756
Conversation
Size Change: -10 B (0%) Total Size: 1.42 MB
ℹ️ View Unchanged
|
Flaky tests detected in fa4de00. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5335803270
|
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.
Thank you for the fix @t-hamano 🚀
There's also #51762 by @ciampo that addresses this issue along with the tooltips on the back button.
I don't have strong opinions regarding the slightly different approaches.
There do appear to be some related e2e failures here, so perhaps it's easier to go with #51762?
Thanks for the review, @aaronrobertshaw!
Yes, I have no problem closing this PR and proceeding with #51762 👍 |
Thank you @t-hamano ! Going to close this PR as agreed |
What?
This PR fixes a browser warning error that is output when the library page is opened in the site editor.
Why?
This is because if the
SIdebarButton
component is passed to the icon prop of theDropdownMenu
component, the button element will be nested.How?
Use
toggleProps
prop.Testing Instructions
Verify that the browser console does not output an error when the Library page is opened in the Site Editor.