-
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
Regression: iframed post editor can show some admin styles with classic themes #57176
Comments
I can think of two viable fixes. Option 1: Restore
|
This is breaking older, custom themes from us as well. Would it not be the easiest way to reverting it back to use html? Was it not only removed for performance reasons? |
Hi, |
This is still a problem in WordPress 6.5-beta1 and Gutenberg 17.7.0. Themes such as Twenty Thirteen and Twenty Fourteen show the issue more clearly because they do not specify a |
I wanted to confirm that this is still the case today. As has been said, this impacts all 'classic' themes, here is a list of themes which are impacted:
This means that a significant amount of them are impacted, so my advice would be to look at a resolution or recommend an approach theme by theme if it is decided that the approach in editor is the preferred way. I suspect an approach in the editor is better than going theme by theme though. |
Description
In classic themes, styles such as the
background-color
andline-height
from the admincommon.css
can apply to thebody
element within the iframed post editor canvas.Step-by-step reproduction instructions
#f0f0f1
) instead of white.Screenshots, screen recording, code snippet
Twenty Nineteen is one of the themes that shows the admin's light gray background color instead of white.
In an uncommon and extreme example, a Calendar block has a
line-height
of 18.2 pixels—even when the font size is much bigger—in Twenty Twenty.Environment info
The admin CSS bleed can happen with WordPress 6.4.2, either without any plugins active or with Gutenberg 17.2.3. I also experienced it with WordPress 6.3.2, but only when Gutenberg was active (version 16.9.0).
For the screenshots, I used:
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: