-
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: Remove editor specific classes from shell wrapper. #62389
Conversation
@@ -457,12 +457,6 @@ $color-control-label-height: 20px; | |||
} | |||
} | |||
|
|||
.has-fixed-toolbar .wp-block-navigation__responsive-container.is-menu-open { |
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 tested the navigation block, it's the only place where this has-fixed-toolbar was used but I didn't find that these styles had any meaningful impact.
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.
It's been a while, but I believe that these styles are probably related to when the overlay menu is open. It may be fine to remove if this still tests well, regardless there should be an incoming overlay-to-template-part PR that would most likely make it redundant.
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.
Yes, I tried this flow, and didn't notice any difference with or without the style.
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: -173 B (-0.01%) Total Size: 1.74 MB
ℹ️ View Unchanged
|
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.
LGTM as I couldn't spot any differences from trunk. As a follow up we should probably consider removing some of these classes like is-distraction-free
and conditionally render the components that are affected by such logic. Currently we do some conditional rendering and some css hiding..
…Press#62389) Co-authored-by: youknowriad <[email protected]> Co-authored-by: jasmussen <[email protected]> Co-authored-by: ntsekouras <[email protected]>
Related to #62371
What?
As we start exploring building a site editor like experience for posts and media libraries... we need to ensure the "Layout" or "Shell" of the site editor is not opinionated about its content/pages...
With that in mind, this PR removes some class names from that wrapper (most of these classnames are applied appropriately to the editor wrapper or elsewhere) which I found to be useless.
Testing Instructions
1- Check the site editor.
2- Check the navigation block overlay in the site editor.