-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Fix editor view mode canvas shadow #61688
Conversation
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: -16 B (0%) Total Size: 1.75 MB
ℹ️ View Unchanged
|
|
||
& > div { | ||
border-radius: 0; | ||
} |
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.
The radius shouldn’t have to be zeroed here (matching a .is-full-canvas
selector) because radius is only applied when matching :not(.is-full-canvas)
(L136).
& > div { | ||
.edit-site-resizable-frame__inner { |
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'm not sure if we have guidelines on this but it seems like using the class can aid searches. This file already uses a few other classes that aren’t BEM elements of edit-site-layout
so it’s not the only exception. I don’t know if that had to do with why > div
was used.
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.
Thanks for the review and test Joen ❤️ |
Thanks for the PR! 🙏 |
* Remove ineffectual shadow * Reapply shadow * Try a little cleanup Co-authored-by: stokesman <[email protected]> Co-authored-by: jasmussen <[email protected]>
What?
Fixes a apparent regression of the canvas shadow in view mode of the editor. I didn’t label it regression because the label says that’s for latest release and I don’t know when this regressed.
Why?
The shadow is supposed to be there? I'd be just as happy to remove it as restore it but perhaps it would be more important were the editor to respect user admin themes (or become otherwise themeable).
How?
Moves the shadow to an element where it can be seen (if your eyesight and monitor are super good 😄).
Testing Instructions
Screenshots or screencast
Background color applied to make the difference easy to see.
Before
After