SchedulePress breaks Pattern Chooser modal in post editor
-
Hi,
I found a conflict with SchedulePress in the WordPress block editor.
When SchedulePress is active, the pattern chooser modal in the post editor is displayed incorrectly. The pattern becomes very small and is positioned in the top-right corner of the screen.
Steps to reproduce
- Activate SchedulePress.
- active twentwenty* theme
- Create a pattern for the pattern chooser modal in patterns/ folder
<?php
/**
* Title: Patern Test
* Slug: {your-theme}/post-pattern-chooser-test
* Block Types: core/post-content
* Keywords: starter
* Post Types: post
*/
?>
<!-- wp:heading -->
<h2 class="wp-block-heading">test</h2>
<!-- /wp:heading -->4. create a new post.
5. The pattern chooser modal appears and is broken
The issue only occurs when editing posts.
When editing pages, the Pattern Chooser modal works normally.
Disabling SchedulePress fixes the issue immediately.
So it looks like SchedulePress is adding styles specifically to the post editor that interferes with the WordPress modal layout.
my current workaround for SchedulePress, its not perfect.body .components-modal__header {
align-items: center !important;
border-bottom: 1px solid #0000 !important;
box-sizing: border-box !important;
display: flex !important;
flex-direction: row !important;
height: 72px !important;
justify-content: space-between !important;
left: 0 !important;
padding: 24px !important;
position: absolute !important;
top: 0 !important;
width: 100% !important;
z-index: 10 !important;
background: #fff !important;
}
.components-modal__frame.is-full-screen :where(.components-modal__content) {
display: flex !important;
margin-bottom: 24px !important;
padding-bottom: 0 !important;
}
.components-modal__content {
flex: 1 !important;
margin-top: 72px !important;
overflow: auto !important;
padding: 4px 24px 24px !important;
}- This topic was modified 1 week, 2 days ago by .
- This topic was modified 1 week, 2 days ago by .
- This topic was modified 1 week, 2 days ago by .
- This topic was modified 1 week, 2 days ago by .
- This topic was modified 1 week, 2 days ago by .
- This topic was modified 1 week, 2 days ago by .
- This topic was modified 1 week, 2 days ago by .
- This topic was modified 1 week, 2 days ago by .
You must be logged in to reply to this topic.