-
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 padding and margin visualizer styles #47139
Conversation
Size Change: +15 B (0%) Total Size: 1.33 MB
ℹ️ View Unchanged
|
I thought popovers were rendered outside the iframe, and since |
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 was reviewing another PR and commented on the wrong tab. Please discard this comment/approval.
It seems like its related to the An alternative fix could be this - https://github.com/WordPress/gutenberg/compare/fix/padding-and-margin-visualizer-slot?expand=1. In my testing the visualizers no longer seem to work accurately after that change. Not sure why. I think it'd be best to merge this first so that the feature isn't broken. There can be a follow up to try to move the popovers outside the iframe. |
I've followed up with another PR #47483, which makes the visualizers use a slot. I'm not seeing the issues I was before, so hopefully it's fine to move forwards with that. |
What?
I noticed in passing that the padding and margin visualizer styles are really broken
How?
This seems to be a result of the introduction of iframed content in the post editor. I think the styles should be in the content.scss file, but this is the first time I've seen it so I may be wrong.
Testing Instructions
Testing Instructions for Keyboard
This isn't really a keyboard friendly feature
Screenshots or screencast
Before
Kapture.2023-01-13.at.17.27.14.mp4
After
Kapture.2023-01-13.at.17.25.26.mp4