Appearance > Design in classic themes: admin-bar class name in the Site Editor breaks designs #68511
Closed
3 of 6 tasks
Labels
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
When a classic theme is previewed under Appearance > Design, the
admin-bar
class name is not removed from thebody
even though the admin bar is not visible inside the Site Editor iframe.This may break themes that use this CSS class name.
For example, Twenty-Fourteen uses the following CSS to move the sticky header when the admin bar is visible:
In the preview, the theme's header is pushed down and the content is displayed above the header when scrolling:
Step-by-step reproduction instructions
Activate Gutenberg
Activate Twenty Fourteen
Go to Appearance > Design
Screenshots, screen recording, code snippet
appearance-design-twentyfourteen.mp4
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
The text was updated successfully, but these errors were encountered: