-
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
Site editor: remove extra border radius. #37022
Conversation
Size Change: -23 B (0%) Total Size: 1.1 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.
Good eye 😅
Thanks for testing! You may be more familiar with the cases where the iframe doesn't go edge to edge, the cases where you should see the dark gray frame. Did you test those to see if they all have the right radius when they need to. |
Yup, the radii are applied correctly in the post editor's template editing interface, and template part focus mode. Those are the only instances in which the dark frame appears for now. |
Description
If you look closely at the top left and right corners of the site editor, you can spot a dark gray background peeking through a tiny 2px border radius:
As best I can tell, the rule was introduced in #34732 to apply the correct 2px border radius for when the editing canvas is scaled down, surrounded by the dark frame. However it doesn't seem like this particular rule is needed anymore, as a separate 2px border radius is already applied conditionaly when the frame is applied.
So this PR removes it:
Am I missing a use case where the border needs to be applied?
Checklist:
*.native.js
files for terms that need renaming or removal).